| 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: 6; | 12 animation-iteration-count: 6; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .test0 { | 15 .test0 { |
| 16 -webkit-animation-delay: -30s; | 16 animation-delay: -30s; |
| 17 } | 17 } |
| 18 | 18 |
| 19 .test1 { | 19 .test1 { |
| 20 -webkit-animation-delay: -3s; | 20 animation-delay: -3s; |
| 21 } | 21 } |
| 22 | 22 |
| 23 .test2 { | 23 .test2 { |
| 24 -webkit-animation-delay: 0s; | 24 animation-delay: 0s; |
| 25 } | 25 } |
| 26 | 26 |
| 27 .test3 { | 27 .test3 { |
| 28 -webkit-animation-delay: 3s; | 28 animation-delay: 3s; |
| 29 } | 29 } |
| 30 | 30 |
| 31 .anim-left { | 31 .anim-left { |
| 32 -webkit-animation-name: anim-left; | 32 animation-name: anim-left; |
| 33 z-index: 100; | 33 z-index: 100; |
| 34 } | 34 } |
| 35 | 35 |
| 36 .anim-transform { | 36 .anim-transform { |
| 37 -webkit-animation-name: anim-transform; | 37 animation-name: anim-transform; |
| 38 z-index: 200; | 38 z-index: 200; |
| 39 } | 39 } |
| 40 | 40 |
| 41 @-webkit-keyframes anim-left { | 41 @keyframes anim-left { |
| 42 0% { | 42 0% { |
| 43 left: 0px; | 43 left: 0px; |
| 44 } | 44 } |
| 45 100% { | 45 100% { |
| 46 left: 300px; | 46 left: 300px; |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 @-webkit-keyframes anim-transform { | 50 @keyframes anim-transform { |
| 51 0% { | 51 0% { |
| 52 transform: translateX(0px); | 52 transform: translateX(0px); |
| 53 } | 53 } |
| 54 100% { | 54 100% { |
| 55 transform: translateX(300px); | 55 transform: translateX(300px); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 </style> | 58 </style> |
| 59 <body> | 59 <body> |
| 60 <p> | 60 <p> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 81 <br> | 81 <br> |
| 82 <div class='test2 anim-left'></div> | 82 <div class='test2 anim-left'></div> |
| 83 <div class='test2 anim-transform'></div> | 83 <div class='test2 anim-transform'></div> |
| 84 | 84 |
| 85 Start delay 3s (starts 3 seconds after page load, should finish last.) | 85 Start delay 3s (starts 3 seconds after page load, should finish last.) |
| 86 <br> | 86 <br> |
| 87 <div class='test3 anim-left'></div> | 87 <div class='test3 anim-left'></div> |
| 88 <div class='test3 anim-transform'></div> | 88 <div class='test3 anim-transform'></div> |
| 89 </body> | 89 </body> |
| 90 </html> | 90 </html> |
| OLD | NEW |