| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 #box1 { | 5 #box1 { |
| 6 position: relative; | 6 position: relative; |
| 7 height: 100px; | 7 height: 100px; |
| 8 width: 100px; | 8 width: 100px; |
| 9 left: 0; | 9 left: 0; |
| 10 background-color: blue; | 10 background-color: blue; |
| 11 margin: 0; | 11 margin: 0; |
| 12 -webkit-animation-duration: 2s; | 12 animation-duration: 2s; |
| 13 -webkit-animation-timing-function: linear; | 13 animation-timing-function: linear; |
| 14 -webkit-animation-iteration-count: 2; | 14 animation-iteration-count: 2; |
| 15 -webkit-animation-direction: alternate; | 15 animation-direction: alternate; |
| 16 -webkit-animation-name: move; | 16 animation-name: move; |
| 17 } | 17 } |
| 18 @-webkit-keyframes move { | 18 @keyframes move { |
| 19 from { | 19 from { |
| 20 opacity: 1; | 20 opacity: 1; |
| 21 } | 21 } |
| 22 50% { | 22 50% { |
| 23 opacity: 1; | 23 opacity: 1; |
| 24 left: 100px; | 24 left: 100px; |
| 25 } | 25 } |
| 26 to { | 26 to { |
| 27 opacity: 1; | 27 opacity: 1; |
| 28 } | 28 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 runAnimationTest(expectedValues); | 44 runAnimationTest(expectedValues); |
| 45 </script> | 45 </script> |
| 46 </head> | 46 </head> |
| 47 <body> | 47 <body> |
| 48 <div id="box1"></div> | 48 <div id="box1"></div> |
| 49 <div id="result"> | 49 <div id="result"> |
| 50 </div> | 50 </div> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |