| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <style> | 2 <style> |
| 3 div { | 3 div { |
| 4 position: relative; | 4 position: relative; |
| 5 height: 100px; | 5 height: 100px; |
| 6 width: 100px; | 6 width: 100px; |
| 7 background: blue; | 7 background: blue; |
| 8 transform: translateZ(0); | 8 transform: translateZ(0); |
| 9 -webkit-animation-direction: alternate; | 9 animation-direction: alternate; |
| 10 -webkit-animation-duration: 2s; | 10 animation-duration: 2s; |
| 11 -webkit-animation-timing-function: linear; | 11 animation-timing-function: linear; |
| 12 -webkit-animation-iteration-count: 1; | 12 animation-iteration-count: 1; |
| 13 -webkit-animation-delay: 1s; | 13 animation-delay: 1s; |
| 14 } | 14 } |
| 15 | 15 |
| 16 .fill-both { | 16 .fill-both { |
| 17 -webkit-animation-fill-mode: both; | 17 animation-fill-mode: both; |
| 18 } | 18 } |
| 19 | 19 |
| 20 .fill-none { | 20 .fill-none { |
| 21 -webkit-animation-fill-mode: none; | 21 animation-fill-mode: none; |
| 22 } | 22 } |
| 23 | 23 |
| 24 .fill-forwards { | 24 .fill-forwards { |
| 25 -webkit-animation-fill-mode: forwards; | 25 animation-fill-mode: forwards; |
| 26 } | 26 } |
| 27 | 27 |
| 28 .fill-backwards { | 28 .fill-backwards { |
| 29 -webkit-animation-fill-mode: backwards; | 29 animation-fill-mode: backwards; |
| 30 } | 30 } |
| 31 | 31 |
| 32 .anim-left { | 32 .anim-left { |
| 33 -webkit-animation-name: anim-left; | 33 animation-name: anim-left; |
| 34 z-index: 100; | 34 z-index: 100; |
| 35 } | 35 } |
| 36 | 36 |
| 37 .anim-transform { | 37 .anim-transform { |
| 38 -webkit-animation-name: anim-transform; | 38 animation-name: anim-transform; |
| 39 z-index: 200; | 39 z-index: 200; |
| 40 } | 40 } |
| 41 | 41 |
| 42 @-webkit-keyframes anim-left { | 42 @keyframes anim-left { |
| 43 0% { | 43 0% { |
| 44 left: 250px; | 44 left: 250px; |
| 45 } | 45 } |
| 46 100% { | 46 100% { |
| 47 left: 500px; | 47 left: 500px; |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 @-webkit-keyframes anim-transform { | 51 @keyframes anim-transform { |
| 52 0% { | 52 0% { |
| 53 transform: translateX(250px); | 53 transform: translateX(250px); |
| 54 } | 54 } |
| 55 100% { | 55 100% { |
| 56 transform: translateX(500px); | 56 transform: translateX(500px); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 </style> | 59 </style> |
| 60 <body> | 60 <body> |
| 61 <p> | 61 <p> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 }); | 106 }); |
| 107 transformAuto.animate(transformKeyframes, { | 107 transformAuto.animate(transformKeyframes, { |
| 108 duration: 2000, | 108 duration: 2000, |
| 109 iterations: 1, | 109 iterations: 1, |
| 110 fill: 'auto', | 110 fill: 'auto', |
| 111 delay: 1000 | 111 delay: 1000 |
| 112 }); | 112 }); |
| 113 </script> | 113 </script> |
| 114 </body> | 114 </body> |
| 115 </html> | 115 </html> |
| OLD | NEW |