blob: 688d717d659302b8c17850562b6745e6ce4ac6d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.container {
perspective: 100px;
background-color: rgba(0, 0, 0, 0.5);
width: 600px;
height: 600px;
transform-style: preserve-3d;
}
.f1 {
position: absolute;
top: 0px;
left: 0px;
width: 200px;
height: 200px;
background-color: red;
transform: translate3d(0, 0, -5px);
}
.f2 {
position: absolute;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
background-color: green;
transform: translate3d(0, 0, 0);
}
.f3 {
position: absolute;
top: 200px;
left: 200px;
width: 200px;
height: 200px;
background-color: blue;
transform: translate3d(0, 0, 0);
}
</style>
</head>
<body>
<div class="container">AAA
<div class="f1"></div>
<div class="f2"></div>
<div class="f3"></div>
</div>
</body>
</html>
|