-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
executable file
·56 lines (44 loc) · 999 Bytes
/
style.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
body{
background: rgb(0, 0, 0);
}
.container{
margin-top: 150px;
perspective: 1000px;
perspective-origin: 50% 50%;
}
.cubo{
transform-style: preserve-3d;
width: 200px;
height: 200px;
margin: auto;
position: relative;
}
.cubo img{
position: absolute;
opacity: 0.8;
}
.cubo img:nth-child(1){
transform: rotateY(0deg) translateZ(100px);
}
.cubo img:nth-child(2){
transform: rotateY(90deg) translateZ(100px);
}
.cubo img:nth-child(3){
transform: rotateY(180deg) translateZ(100px);
}
.cubo img:nth-child(4){
transform: rotateY(-90deg) translateZ(100px);
}
.cubo img:nth-child(5){
transform: rotateX(90deg) translateZ(100px);
}
.cubo img:nth-child(6){
transform: rotateX(-90deg) translateZ(100px);
}
@keyframes loop{
from{transform: rotateX(0deg) rotateY(0deg);}
to{transform: rotateX(360deg) rotateY(360deg);}
}
.cubo{
animation: loop 10s linear infinite;
}