-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransformIssue.html
38 lines (35 loc) · 1.25 KB
/
transformIssue.html
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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 0;
}
div {
width: 100%;
height: 100%;
}
.container {
position: absolute;
overflow: visible;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.surface {
position: absolute;
-webkit-transform-style: flat;
transform-style: flat;
}
</style>
</head>
<body>
<div class="container">
<div class="surface" style=" transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);">
<div class="container">
<div class="surface" style="transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 10, 1); background-color: blue;">I am in front</div>
<div class="surface" style="transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, -10, 1); background-color: red;">I am behind</div>
</div>
</div>
</div>
</body>
</html>