OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .box { | 4 .box { |
5 position: relative; | 5 position: relative; |
6 left: 0; | 6 left: 0; |
7 height: 100px; | 7 height: 100px; |
8 width: 100px; | 8 width: 100px; |
9 margin: 10px; | 9 margin: 10px; |
10 background-color: blue; | 10 background-color: blue; |
11 -webkit-transition-duration: 0.5s; | 11 transition-duration: 0.5s; |
12 } | 12 } |
13 | 13 |
14 .box1 { | 14 .box1 { |
15 left: 50px; | 15 left: 50px; |
16 } | 16 } |
17 | 17 |
18 .box2 { | 18 .box2 { |
19 background-color: red; | 19 background-color: red; |
20 left: 50px; | 20 left: 50px; |
21 } | 21 } |
22 | 22 |
23 .box3 { | 23 .box3 { |
24 width: 150px; | 24 width: 150px; |
25 background-color: green; | 25 background-color: green; |
26 left: 50px; | 26 left: 50px; |
27 height: 120px; | 27 height: 120px; |
28 -webkit-transition-duration: 0.7s; | 28 transition-duration: 0.7s; |
29 } | 29 } |
30 | 30 |
31 </style> | 31 </style> |
32 <script src="transition-end-event-helpers.js"></script> | 32 <script src="transition-end-event-helpers.js"></script> |
33 <script type="text/javascript"> | 33 <script type="text/javascript"> |
34 | 34 |
35 var expectedEndEvents = [ | 35 var expectedEndEvents = [ |
36 // [property-name, element-id, elapsed-time, listen] | 36 // [property-name, element-id, elapsed-time, listen] |
37 ["background-color", "box2", 0.5, true], | 37 ["background-color", "box2", 0.5, true], |
38 ["background-color", "box3", 0.7, true], | 38 ["background-color", "box3", 0.7, true], |
(...skipping 22 matching lines...) Expand all Loading... |
61 <div id="container"> | 61 <div id="container"> |
62 <div id="box1" class="box"></div> | 62 <div id="box1" class="box"></div> |
63 <div id="box2" class="box"></div> | 63 <div id="box2" class="box"></div> |
64 <div id="box3" class="box"></div> | 64 <div id="box3" class="box"></div> |
65 </div> | 65 </div> |
66 | 66 |
67 <div id="result"></div> | 67 <div id="result"></div> |
68 | 68 |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
OLD | NEW |