-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (70 loc) · 1.44 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700');
body {
height: 70vh;
display: grid;
place-items: center;
font-family: 'Oswald', sans-serif;
}
.container {
display: flex;
align-content: center;
align-items: center;
justify-content: center;
}
.card {
width: 300px;
}
.card__content {
text-align: center;
position: relative;
padding: 8em 5em;
transition: 3s;
transform-style: preserve-3d;
}
.card:hover .card__content {
transform: rotateY(.5turn);
}
.card__front,
.card__back {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
backface-visibility: hidden;
transform-style: preserve-3d;
display: grid;
align-content: center;
}
.card__front {
background-color: rgba(255, 255, 255, 0.467);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-blend-mode: overlay;
color: #333;
}
.card__front::before {
content: '';
position: absolute;
--spacer: 1em;
top: var(--spacer);
bottom: var(--spacer);
left: var(--spacer);
right: var(--spacer);
border: 3px solid #0275d8;
transform: translateZ(1.5rem);
}
.card__back {
transform: rotateY(.5turn);
background-color: #81c3fd;
}
.card__title {
font-size: 3.5rem;
transform: translateZ(3rem);
}
.card__body {
font-size: 3rem;
transform: translateZ(1.5rem);
cursor: pointer;
}