-
Notifications
You must be signed in to change notification settings - Fork 1
/
ex1.html
77 lines (60 loc) · 1.74 KB
/
ex1.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- disable zooming -->
<meta name="viewport" content="initial-scale=1.0, user-scalable=0" />
<title>Examples of Transforms</title>
<link rel="stylesheet" href="includes/style.css" media="screen" />
<style media="screen">
.container {
width: 198px;
height: 198px;
border: 1px solid #CCC;
margin: 0 auto 60px;
position: relative;
overflow: visible;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.panel {
width: 192px;
height: 192px;
position: absolute;
opacity: 0.7;
border: 4px solid black;
font-size: 24px;
font-weight: bold;
color: white;
text-align: center;
background: red;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.image {
background-color: transparent;
background-size: cover;
opacity: 1.0;
}
</style>
</head>
<body>
<h1>Examples of Transforms</h1>
<div id="translate-z-negative" class="container">
</div>
<div id="translate-z-positive" class="container">
</div>
<div id="rotate-x" class="container">
</div>
<div id="rotate-y" class="container">
</div>
<div id="rotate-z" class="container">
</div>
<script type="module" src="js/ex1.js"></script>
<p class="footer">Ideas for examples taken from tutorial code at the <a href="https://github.com/desandro/3dtransforms">3DTransforms</a> project on github.</p>
</body>
</html>