OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 width: 100px; | 8 width: 100px; |
9 height: 100px; | 9 height: 100px; |
10 border: 1px solid black; | 10 border: 1px solid black; |
11 } | 11 } |
12 | 12 |
13 .middle { | 13 .middle { |
14 visibility: hidden; | 14 visibility: hidden; |
15 } | 15 } |
16 | 16 |
17 .inner { | 17 .inner { |
18 width: 80px; | 18 width: 80px; |
19 height: 80px; | 19 height: 80px; |
20 -webkit-animation: spin 5s linear infinite; | 20 -webkit-animation: spin 5s linear infinite; |
21 } | 21 } |
22 | 22 |
23 @-webkit-keyframes spin { | 23 @-webkit-keyframes spin { |
24 0% { -webkit-transform: rotate(0); } | 24 0% { transform: rotate(0); } |
25 100% { -webkit-transform: rotate(360deg); } | 25 100% { transform: rotate(360deg); } |
26 } | 26 } |
27 | 27 |
28 #transition-tester { | 28 #transition-tester { |
29 position: relative; | 29 position: relative; |
30 left: 0; | 30 left: 0; |
31 background-color: blue; | 31 background-color: blue; |
32 -webkit-transition: left 1s linear; | 32 -webkit-transition: left 1s linear; |
33 } | 33 } |
34 | 34 |
35 #container.animating #transition-tester { | 35 #container.animating #transition-tester { |
(...skipping 24 matching lines...) Expand all Loading... |
60 | 60 |
61 <div class="middle box"> | 61 <div class="middle box"> |
62 <div class="inner box"></div> | 62 <div class="inner box"></div> |
63 </div> | 63 </div> |
64 </div> | 64 </div> |
65 | 65 |
66 <div id="result"></div> | 66 <div id="result"></div> |
67 | 67 |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |