| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <title>Test of -webkit-animation-play-state</title> | 3 <title>Test of -webkit-animation-play-state</title> |
| 4 <style> | 4 <style> |
| 5 .target { | 5 .target { |
| 6 height: 100px; | 6 height: 100px; |
| 7 width: 100px; | 7 width: 100px; |
| 8 -webkit-animation-duration: 40ms; | 8 -webkit-animation-duration: 40ms; |
| 9 -webkit-animation-timing-function: linear; | 9 -webkit-animation-timing-function: linear; |
| 10 } | 10 } |
| 11 #translate { | 11 #translate { |
| 12 background-color: blue; | 12 background-color: blue; |
| 13 -webkit-animation-name: "move1"; | 13 -webkit-animation-name: "move1"; |
| 14 } | 14 } |
| 15 @-webkit-keyframes "move1" { | 15 @-webkit-keyframes "move1" { |
| 16 from { -webkit-transform: translateX(100px); } | 16 from { transform: translateX(100px); } |
| 17 to { -webkit-transform: translateX(200px); } | 17 to { transform: translateX(200px); } |
| 18 } | 18 } |
| 19 #left { | 19 #left { |
| 20 position: relative; | 20 position: relative; |
| 21 background-color: red; | 21 background-color: red; |
| 22 -webkit-animation-name: "move2"; | 22 -webkit-animation-name: "move2"; |
| 23 } | 23 } |
| 24 @-webkit-keyframes "move2" { | 24 @-webkit-keyframes "move2" { |
| 25 from { left: 100px; } | 25 from { left: 100px; } |
| 26 to { left: 200px; } | 26 to { left: 200px; } |
| 27 } | 27 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 </head> | 88 </head> |
| 89 <body> | 89 <body> |
| 90 <p> | 90 <p> |
| 91 This tests the operation of -webkit-animation-play-state. We test style | 91 This tests the operation of -webkit-animation-play-state. We test style |
| 92 while the animations are paused and once unpaused. | 92 while the animations are paused and once unpaused. |
| 93 </p> | 93 </p> |
| 94 <div class="target" id="translate">transform</div> | 94 <div class="target" id="translate">transform</div> |
| 95 <div class="target" id="left">left</div> | 95 <div class="target" id="left">left</div> |
| 96 </body> | 96 </body> |
| 97 </html> | 97 </html> |
| OLD | NEW |