-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
63 lines (53 loc) · 943 Bytes
/
style.css
File metadata and controls
63 lines (53 loc) · 943 Bytes
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
img{
width: 100%;
height: 100%;
opacity: 0.5;
}
.cube-container {
perspective: 800px;
width: 200px;
height: 200px;
margin: 0 auto;
}
.cube {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
animation: rotate 6s infinite linear;
}
.face {
position: absolute;
width: 200px;
height: 200px;
background-color: rgba(0,0,0,0.5);
color: white;
text-align: center;
font-size: 30px;
}
.front {
transform: translateZ(100px);
}
.back {
transform: rotateY(180deg) translateZ(100px);
}
.left {
transform: rotateY(-90deg) translateZ(100px);
}
.right {
transform: rotateY(90deg) translateZ(100px);
}
.top {
transform: rotateX(90deg) translateZ(100px);
}
.bottom {
transform: rotateX(-90deg) translateZ(100px);
}
@keyframes rotate {
0% {
transform: rotateX(0) rotateY(0) rotateZ(0);
}
100% {
transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
}
}