OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 #container { | 6 #container { |
7 width: 700px; | 7 width: 700px; |
8 background-color: #fcc; | 8 background-color: #fcc; |
9 } | 9 } |
10 | 10 |
11 #container div { | 11 #container div { |
12 position: relative; | 12 position: relative; |
13 background-color: #933; | 13 background-color: #933; |
14 width: 200px; | 14 width: 200px; |
15 height: 50px; | 15 height: 50px; |
16 left: 50px; | 16 left: 50px; |
17 margin-top: 10px; | 17 margin-top: 10px; |
18 } | 18 } |
19 #container.run #left { | 19 #container.run #left { |
20 left: 450px; | 20 left: 450px; |
21 -webkit-transition-property: left; | 21 -webkit-transition-property: left; |
22 -webkit-transition-duration: 1s; | 22 -webkit-transition-duration: 1s; |
23 -webkit-transition-timing-function: linear; | 23 -webkit-transition-timing-function: linear; |
24 } | 24 } |
25 #container.run #translate { | 25 #container.run #translate { |
26 -webkit-transform: translate(400px, 0px); | 26 transform: translate(400px, 0px); |
27 -webkit-transition-property: -webkit-transform; | 27 -webkit-transition-property: -webkit-transform; |
alancutter (OOO until 2018)
2014/10/14 05:13:48
Need to change the transition property target as w
| |
28 -webkit-transition-duration: 1s; | 28 -webkit-transition-duration: 1s; |
29 -webkit-transition-timing-function: linear; | 29 -webkit-transition-timing-function: linear; |
30 } | 30 } |
31 </style> | 31 </style> |
32 <script> | 32 <script> |
33 if (window.testRunner) { | 33 if (window.testRunner) { |
34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
35 testRunner.waitUntilDone(); | 35 testRunner.waitUntilDone(); |
36 } | 36 } |
37 | 37 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 would cause the transition to continue to run (although with no visible effe ct). So when you | 95 would cause the transition to continue to run (although with no visible effe ct). So when you |
96 restarted, it would pick up where it left off. | 96 restarted, it would pick up where it left off. |
97 </p> | 97 </p> |
98 <div id="container"> | 98 <div id="container"> |
99 <div id="left">left</div> | 99 <div id="left">left</div> |
100 <div id="translate">translate</div> | 100 <div id="translate">translate</div> |
101 </div> | 101 </div> |
102 <div id="result"></div> | 102 <div id="result"></div> |
103 </body> | 103 </body> |
104 </html> | 104 </html> |
OLD | NEW |