OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 | 3 |
4 <html lang="en"> | 4 <html lang="en"> |
5 <head> | 5 <head> |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
7 <title>Overriding Animations</title> | 7 <title>Overriding Animations</title> |
8 <script src="../../shared/javascript/utils.js" type="text/javascript" charset=
"utf-8"></script> | 8 <script src="../../shared/javascript/utils.js" type="text/javascript" charset=
"utf-8"></script> |
9 <style type="text/css" media="screen"> | 9 <style type="text/css" media="screen"> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 .one { | 32 .one { |
33 -webkit-animation-duration: 0s; | 33 -webkit-animation-duration: 0s; |
34 } | 34 } |
35 | 35 |
36 .two { | 36 .two { |
37 -webkit-animation-duration: 0; | 37 -webkit-animation-duration: 0; |
38 } | 38 } |
39 | 39 |
40 @-webkit-keyframes slide { | 40 @-webkit-keyframes slide { |
41 from { -webkit-transform: translateX(0); } | 41 from { transform: translateX(0); } |
42 to { -webkit-transform: translateX(280px); } | 42 to { transform: translateX(280px); } |
43 } | 43 } |
44 | 44 |
45 </style> | 45 </style> |
46 </head> | 46 </head> |
47 <body> | 47 <body> |
48 <p>Single anim (should keep animating)</p> | 48 <p>Single anim (should keep animating)</p> |
49 <div class="container" onclick="toggleClassName(this, 'highlighted')"> | 49 <div class="container" onclick="toggleClassName(this, 'highlighted')"> |
50 <div class="box none"> | 50 <div class="box none"> |
51 </div> | 51 </div> |
52 </div> | 52 </div> |
53 <p>duration: "0s" (should not animate)</p> | 53 <p>duration: "0s" (should not animate)</p> |
54 <div class="container" onclick="toggleClassName(this, 'highlighted')"> | 54 <div class="container" onclick="toggleClassName(this, 'highlighted')"> |
55 <div class="box one"> | 55 <div class="box one"> |
56 </div> | 56 </div> |
57 </div> | 57 </div> |
58 <p>duration: "0" (should animate since inherits valid duration)</p> | 58 <p>duration: "0" (should animate since inherits valid duration)</p> |
59 <div class="container" onclick="toggleClassName(this, 'highlighted')"> | 59 <div class="container" onclick="toggleClassName(this, 'highlighted')"> |
60 <div class="box two"> | 60 <div class="box two"> |
61 </div> | 61 </div> |
62 </div> | 62 </div> |
63 | 63 |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |