Chromium Code Reviews| 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-property: -webkit-transform; | 11 -webkit-transition-property: -webkit-transform; |
|
alancutter (OOO until 2018)
2014/10/14 05:13:49
Need to change the transition property target as w
| |
| 12 -webkit-transition-duration: 0.5s; | 12 -webkit-transition-duration: 0.5s; |
| 13 -webkit-transform: translate(100px); | 13 transform: translate(100px); |
| 14 } | 14 } |
| 15 </style> | 15 </style> |
| 16 <script src="transition-end-event-helpers.js"></script> | 16 <script src="transition-end-event-helpers.js"></script> |
| 17 <script type="text/javascript"> | 17 <script type="text/javascript"> |
| 18 | 18 |
| 19 var expectedEndEvents = [ | 19 var expectedEndEvents = [ |
| 20 // [property-name, element-id, elapsed-time, listen] | 20 // [property-name, element-id, elapsed-time, listen] |
| 21 ["-webkit-transform", "box1", 0.5, true] | 21 ["-webkit-transform", "box1", 0.5, true] |
| 22 ]; | 22 ]; |
| 23 | 23 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 35 <p>Initiating a 500ms transition on the transform property of box1.</p> | 35 <p>Initiating a 500ms transition on the transform property of box1.</p> |
| 36 | 36 |
| 37 <div id="container"> | 37 <div id="container"> |
| 38 <div id="box1" class="box"></div> | 38 <div id="box1" class="box"></div> |
| 39 </div> | 39 </div> |
| 40 | 40 |
| 41 <div id="result"></div> | 41 <div id="result"></div> |
| 42 | 42 |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |