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-transform: translate(0); | 11 transform: translate(0); |
| 12 -webkit-transition-property: -webkit-transform; | 12 -webkit-transition-property: -webkit-transform; |
|
alancutter (OOO until 2018)
2014/10/14 05:13:49
Need to change the transition property target as w
| |
| 13 -webkit-transition-duration: 0.5s; | 13 -webkit-transition-duration: 0.5s; |
| 14 } | 14 } |
| 15 | 15 |
| 16 .box1 { | 16 .box1 { |
| 17 -webkit-transform: translate(50px); | 17 transform: translate(50px); |
| 18 } | 18 } |
| 19 | 19 |
| 20 .box2 { | 20 .box2 { |
| 21 -webkit-transform: translate(50px) scale(1.05); | 21 transform: translate(50px) scale(1.05); |
| 22 -webkit-transition-duration: 0.55s; | 22 -webkit-transition-duration: 0.55s; |
| 23 } | 23 } |
| 24 | 24 |
| 25 .box3 { | 25 .box3 { |
| 26 -webkit-transform: translate(0); /* same as default */ | 26 transform: translate(0); /* same as default */ |
| 27 -webkit-transition-duration: 0.3s; | 27 -webkit-transition-duration: 0.3s; |
| 28 } | 28 } |
| 29 | 29 |
| 30 .box4 { | 30 .box4 { |
| 31 -webkit-transform: translate(100px); | 31 transform: translate(100px); |
| 32 -webkit-transition-duration: 0.4s; | 32 -webkit-transition-duration: 0.4s; |
| 33 } | 33 } |
| 34 | 34 |
| 35 .box5 { | 35 .box5 { |
| 36 /* nothing */ | 36 /* nothing */ |
| 37 } | 37 } |
| 38 | 38 |
| 39 </style> | 39 </style> |
| 40 <script src="transition-end-event-helpers.js"></script> | 40 <script src="transition-end-event-helpers.js"></script> |
| 41 <script type="text/javascript"> | 41 <script type="text/javascript"> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 <div id="box2" class="box"></div> | 79 <div id="box2" class="box"></div> |
| 80 <div id="box3" class="box"></div> | 80 <div id="box3" class="box"></div> |
| 81 <div id="box4" class="box"></div> | 81 <div id="box4" class="box"></div> |
| 82 <div id="box5" class="box"></div> | 82 <div id="box5" class="box"></div> |
| 83 </div> | 83 </div> |
| 84 | 84 |
| 85 <div id="result"></div> | 85 <div id="result"></div> |
| 86 | 86 |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |