OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .composited { | 4 .composited { |
5 -webkit-transform: translatez(0); | 5 transform: translatez(0); |
6 } | 6 } |
7 | 7 |
8 .box { | 8 .box { |
9 width: 100px; | 9 width: 100px; |
10 height: 100px; | 10 height: 100px; |
11 } | 11 } |
12 | 12 |
13 .behind { | 13 .behind { |
14 position: absolute; | 14 position: absolute; |
15 z-index: 1; | 15 z-index: 1; |
(...skipping 20 matching lines...) Expand all Loading... |
36 | 36 |
37 .top { | 37 .top { |
38 position: absolute; | 38 position: absolute; |
39 z-index: 1; | 39 z-index: 1; |
40 top: 340px; | 40 top: 340px; |
41 left: 340px; | 41 left: 340px; |
42 background-color: cyan; | 42 background-color: cyan; |
43 } | 43 } |
44 | 44 |
45 .clipper { | 45 .clipper { |
46 -webkit-transform: translatez(0); | 46 transform: translatez(0); |
47 width: 400px; | 47 width: 400px; |
48 height: 400px; | 48 height: 400px; |
49 background-color: gray; | 49 background-color: gray; |
50 overflow: hidden; | 50 overflow: hidden; |
51 } | 51 } |
52 | 52 |
53 div:hover { | 53 div:hover { |
54 background-color: green; | 54 background-color: green; |
55 } | 55 } |
56 | 56 |
57 </style> | 57 </style> |
58 </head> | 58 </head> |
59 <body> | 59 <body> |
60 <div class="clipper"> | 60 <div class="clipper"> |
61 <div class="composited box behind"></div> | 61 <div class="composited box behind"></div> |
62 <div class="box middle"></div> | 62 <div class="box middle"></div> |
63 <div class="box middle2"></div> | 63 <div class="box middle2"></div> |
64 <div class="box top"></div> | 64 <div class="box top"></div> |
65 </div> | 65 </div> |
66 </body> | 66 </body> |
OLD | NEW |