-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestilos.css
78 lines (74 loc) · 1.17 KB
/
estilos.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
html{
position: relative;
display:block;
overflow:none;
margin: 0px;
padding:0px;
}
body{
margin: 0;
background: #333;
display: inline-flex;
height: 100vh;
min-height: 90vh;
width: 100%;
}
.contenedor{
margin: auto;
perspective: 700px;
}
.cubo{
width: 200px;
height: 200px;
position: relative;
transform-style: preserve-3d;
animation: girar 5s infinite linear;
}
@keyframes girar {
from {
transform: rotateY(0deg) rotateX(0deg);
}
to {
transform: rotateY(360deg) rotateX(360deg);
}
}
.cara {
position: absolute;
width: 100%;
height: 100%;
}
.cara .p{
top: 2px;
left: 2px;
position: relative;
display: inline-block;
border: 1px solid black;
width: 66.6666666667px;
height: 66.6666666667px;
margin: -2.6px;
padding: 0px;
}
#uno{
background: crimson;
transform: translateZ(100px);
}
#dos{
background: darkorange;
transform: translateX(100px) rotateY(90deg);
}
#tres{
background: yellow;
transform: translateZ(-100px);
}
#cuatro{
background: blue;
transform: translateX(-100px) rotateY(90deg);
}
#cinco{
background: green;
transform: translateY(-100px) rotateX(90deg);
}
#seis{
background: white;
transform: translateY(100px) rotateX(90deg);
}