-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestilos.css
More file actions
59 lines (51 loc) · 993 Bytes
/
estilos.css
File metadata and controls
59 lines (51 loc) · 993 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
body {
text-align: center;
background: #222;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1 {
color: #ddd;
text-transform: uppercase;
}
.container {
perspective: 1000px;
display: flex;
justify-content: center;
align-items: center;
}
.carta {
height: 150px;
width: 150px;
position: relative;
transition: all 0.5s linear;
transform-style: preserve-3d;
margin: 10px;
}
.carta-oculta, .carta-figura {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 5em;
border-radius: 10px;
position: absolute;
color: white;
}
.carta-oculta {
background: radial-gradient(#4e7ef9, #033e8a);
z-index: 2;
backface-visibility: hidden;
}
.carta-figura {
z-index: 1;
transform: rotateY(180deg);
}
.carta-figura img {
width: 100%;
height: 100%;
border-radius: 10px;
}
.carta-invertida {
transform: rotateY(180deg);
}