-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
56 lines (47 loc) · 873 Bytes
/
styles.css
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
.cube {
width: 200px;
height: 200px;
position: relative;
perspective: 1000px;
}
.side {
position: absolute;
width: 200px;
height: 200px;
opacity: 0.8;
}
.front {
background-color: #ff0000;
transform: translateZ(100px);
}
.back {
background-color: #00ff00;
transform: rotateY(180deg) translateZ(100px);
}
.right {
background-color: #0000ff;
transform: rotateY(90deg) translateZ(100px);
}
.left {
background-color: #ffff00;
transform: rotateY(-90deg) translateZ(100px);
}
.top {
background-color: #ff00ff;
transform: rotateX(90deg) translateZ(100px);
}
.bottom {
background-color: #00ffff;
transform: rotateX(-90deg) translateZ(100px);
}
.cube {
animation: rotate 5s infinite linear;
}
@keyframes rotate {
0% {
transform: rotateX(0deg) rotateY(0deg);
}
100% {
transform: rotateX(360deg) rotateY(360deg);
}
}