OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 margin: 10px; | 10 margin: 10px; |
(...skipping 12 matching lines...) Expand all Loading... |
23 from { | 23 from { |
24 left: 0px; | 24 left: 0px; |
25 } | 25 } |
26 to { | 26 to { |
27 left: 400px; | 27 left: 400px; |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 @-webkit-keyframes fast { | 31 @-webkit-keyframes fast { |
32 from { | 32 from { |
33 -webkit-transform: translateX(0); | 33 transform: translateX(0); |
34 } | 34 } |
35 to { | 35 to { |
36 -webkit-transform: translateX(400px); | 36 transform: translateX(400px); |
37 } | 37 } |
38 } | 38 } |
39 </style> | 39 </style> |
40 </head> | 40 </head> |
41 <body> | 41 <body> |
42 <p>The lower box should animate more smoothly than the upper one (on Mac).</p> | 42 <p>The lower box should animate more smoothly than the upper one (on Mac).</p> |
43 <div class="box slow"></div> | 43 <div class="box slow"></div> |
44 <div class="box fast"></div> | 44 <div class="box fast"></div> |
45 </body> | 45 </body> |
46 </html> | 46 </html> |
OLD | NEW |