| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .box { | 3 .box { |
| 4 height: 100px; | 4 height: 100px; |
| 5 width: 100px; | 5 width: 100px; |
| 6 background-color: blue; | 6 background-color: blue; |
| 7 } | 7 } |
| 8 | 8 |
| 9 #box { | 9 #box { |
| 10 animation-name: anim; | 10 animation-name: anim; |
| 11 animation-duration: 1s; | 11 animation-duration: 1s; |
| 12 animation-delay: -0.5s; | 12 animation-delay: -0.5s; |
| 13 animation-play-state: paused; | 13 animation-play-state: paused; |
| 14 animation-timing-function: linear; | 14 animation-timing-function: linear; |
| 15 } | 15 } |
| 16 | 16 |
| 17 @-webkit-keyframes anim { | 17 @keyframes anim { |
| 18 from { transform: rotate(0deg) translate(-100px, 0); } | 18 from { transform: rotate(0deg) translate(-100px, 0); } |
| 19 to { transform: rotate(180deg) translate(300px, 0); } | 19 to { transform: rotate(180deg) translate(300px, 0); } |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <div class="box" id="box"></div> | 22 <div class="box" id="box"></div> |
| OLD | NEW |