OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 body { | 5 body { |
6 margin: 0; | 6 margin: 0; |
7 } | 7 } |
8 | 8 |
9 .container { | 9 .container { |
10 top: 10px; | 10 top: 10px; |
11 left: 10px; | 11 left: 10px; |
12 -webkit-transform-style: preserve-3d; | 12 -webkit-transform-style: preserve-3d; |
13 -webkit-perspective: 500px; | 13 -webkit-perspective: 500px; |
14 outline: 1px solid black; | 14 outline: 1px solid black; |
15 } | 15 } |
16 | 16 |
17 .box { | 17 .box { |
18 position: absolute; | 18 position: absolute; |
19 width: 100px; | 19 width: 100px; |
20 height: 100px; | 20 height: 100px; |
21 } | 21 } |
22 | 22 |
23 .intermediate { | 23 .intermediate { |
24 -webkit-transform: rotateY(-90deg); | 24 transform: rotateY(-90deg); |
25 -webkit-transform-style: preserve-3d; | 25 -webkit-transform-style: preserve-3d; |
26 } | 26 } |
27 | 27 |
28 .inner { | 28 .inner { |
29 -webkit-transform: rotateY(-90deg); | 29 transform: rotateY(-90deg); |
30 background: green; | 30 background: green; |
31 } | 31 } |
32 | 32 |
33 .indicator { | 33 .indicator { |
34 top: 10px; | 34 top: 10px; |
35 left: 110px; | 35 left: 110px; |
36 background-color: red; | 36 background-color: red; |
37 } | 37 } |
38 </style> | 38 </style> |
39 <script type="text/javascript" charset="utf-8"> | 39 <script type="text/javascript" charset="utf-8"> |
(...skipping 18 matching lines...) Expand all Loading... |
58 <!-- The gren box should snap to the right, obscuring the red box. --> | 58 <!-- The gren box should snap to the right, obscuring the red box. --> |
59 <div class="indicator box"></div> | 59 <div class="indicator box"></div> |
60 <div class="container box"> | 60 <div class="container box"> |
61 <div id="target" class="intermediate box"> | 61 <div id="target" class="intermediate box"> |
62 <div class="inner box"> | 62 <div class="inner box"> |
63 </div> | 63 </div> |
64 </div> | 64 </div> |
65 </div> | 65 </div> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |