OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 @keyframes move { | |
6 from { | |
7 transform: translate(-200px, 0); | |
8 } | |
9 to { | |
10 transform: translate(200px, 0); | |
11 } | |
12 } | |
13 | |
14 div { | |
15 height: 200px; | |
16 width: 200px; | |
17 | |
18 animation-duration: 1.5s; | |
19 animation-iteration-count: infinite; | |
20 animation-name: move; | |
21 | |
22 background: black; | |
23 } | |
24 </style> | |
25 </head> | |
26 <body> | |
27 <div></div> | |
28 </body> | |
29 </html> | |
OLD | NEW |