| 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-fill-mode: both; | 12 animation-fill-mode: both; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .test0 { | 15 .test0 { |
| 16 -webkit-animation-iteration-count: 0; | 16 animation-iteration-count: 0; |
| 17 } | 17 } |
| 18 | 18 |
| 19 .test1 { | 19 .test1 { |
| 20 -webkit-animation-iteration-count: 0.5; | 20 animation-iteration-count: 0.5; |
| 21 } | 21 } |
| 22 | 22 |
| 23 .test2 { | 23 .test2 { |
| 24 -webkit-animation-iteration-count: 1; | 24 animation-iteration-count: 1; |
| 25 } | 25 } |
| 26 | 26 |
| 27 .test3 { | 27 .test3 { |
| 28 -webkit-animation-iteration-count: 1.5; | 28 animation-iteration-count: 1.5; |
| 29 } | 29 } |
| 30 | 30 |
| 31 .test4 { | 31 .test4 { |
| 32 -webkit-animation-iteration-count: 2; | 32 animation-iteration-count: 2; |
| 33 } | 33 } |
| 34 | 34 |
| 35 .test5 { | 35 .test5 { |
| 36 -webkit-animation-iteration-count: 2.5; | 36 animation-iteration-count: 2.5; |
| 37 } | 37 } |
| 38 | 38 |
| 39 .anim-left { | 39 .anim-left { |
| 40 -webkit-animation-name: anim-left; | 40 animation-name: anim-left; |
| 41 z-index: 100; | 41 z-index: 100; |
| 42 } | 42 } |
| 43 | 43 |
| 44 .anim-transform { | 44 .anim-transform { |
| 45 -webkit-animation-name: anim-transform; | 45 animation-name: anim-transform; |
| 46 z-index: 200; | 46 z-index: 200; |
| 47 } | 47 } |
| 48 | 48 |
| 49 @-webkit-keyframes anim-left { | 49 @keyframes anim-left { |
| 50 0% { | 50 0% { |
| 51 left: 0px; | 51 left: 0px; |
| 52 } | 52 } |
| 53 100% { | 53 100% { |
| 54 left: 300px; | 54 left: 300px; |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 @-webkit-keyframes anim-transform { | 58 @keyframes anim-transform { |
| 59 0% { | 59 0% { |
| 60 transform: translateX(0px); | 60 transform: translateX(0px); |
| 61 } | 61 } |
| 62 100% { | 62 100% { |
| 63 transform: translateX(300px); | 63 transform: translateX(300px); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 </style> | 66 </style> |
| 67 <body> | 67 <body> |
| 68 <p> | 68 <p> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 99 <br> | 99 <br> |
| 100 <div class='test4 anim-left'></div> | 100 <div class='test4 anim-left'></div> |
| 101 <div class='test4 anim-transform'></div> | 101 <div class='test4 anim-transform'></div> |
| 102 | 102 |
| 103 Iteration count 2.5 (should finish last in the middle) | 103 Iteration count 2.5 (should finish last in the middle) |
| 104 <br> | 104 <br> |
| 105 <div class='test5 anim-left'></div> | 105 <div class='test5 anim-left'></div> |
| 106 <div class='test5 anim-transform'></div> | 106 <div class='test5 anim-transform'></div> |
| 107 </body> | 107 </body> |
| 108 </html> | 108 </html> |
| OLD | NEW |