html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="anime1"></div>
<br />
<div id="anime2"></div>
<br />
<div id="anime3"></div>
<br />
<div id="anime4"></div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
body{
background-color:black;
}
#anime1{
animation-name: animation1;
animation-duration: 3s;
animation-timing-function:linear;
animation-delay: 1s;
animation-iteration-count: infinite;
height:100px;
width:0px;
background-color:red;
-webkit-animation-name:animation1;
-webkit-animation-duration: 3s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay: 1s;
-webkit-animation-iteration-count: infinite;
position:relative ;
margin-bottom:300px;
}
@keyframes animation1{
from { margin-right:100%; }
to { width: 100px; }
}
@-webkit-keyframes animation1 {
from { margin-right:100%; }
to { width: 100px; }
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run