Skip to content

Commit

Permalink
Added Slide-In Animation (#2381)
Browse files Browse the repository at this point in the history
* Create index.html

* Create style.css

* Update index.html

* Update style.css

* uploaded gif

* Updated include.js

* change include.js
  • Loading branch information
kalkeshwar authored Oct 29, 2023
1 parent d58db14 commit 6f98cc7
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Art/kalkeshwar/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slide-In Animation</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="box"></div>
</body>
</html>
Binary file added Art/kalkeshwar/sliderightanimation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions Art/kalkeshwar/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*{
padding:0;
margin:0;
box-sizing: border-box;
}
body{
display:flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: black;
}

.box{
background-color: white;
border:1px solid black;
width:40%;
height:200px;
animation: slidein 3s cubic-bezier(0.4, 2.1, 0.8, 0.7) 0.3s
}

@keyframes slidein {
0%{
transform: translateX(-500px);
}
100%{
transform:translateX(0)
}
}
9 changes: 8 additions & 1 deletion include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2572,7 +2572,14 @@ let cards = [
imageLink: './Art/Asymtode712/circles_lines.gif',
author: 'Asymtode712',
githubLink: 'https://github.com/Asymtode712'
}
},
{
artName: 'Slide In Animation',
pageLink: './Art/kalkeshwar/index.html',
imageLink: 'Art/kalkeshwar/sliderightanimation.gif',
author: 'Kalkeshwar',
githubLink: 'https://github.com/kalkeshwar'
},
];

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit 6f98cc7

Please sign in to comment.