-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
66 lines (59 loc) · 1.12 KB
/
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
57
58
59
60
61
62
63
64
65
66
@font-face {
font-family: "Asap";
font-style: normal;
font-weight: 400;
src: local("Asap Regular"), local("Asap-Regular"),
url("/fonts/Asap-Medium.ttf") format("truetype");
}
@font-face {
font-family: "Asap";
font-style: bold;
font-weight: 700;
src: local("Asap Bold"), local("Asap-Bold"),
url("/fonts/Asap-Bold.ttf") format("truetype");
}
body {
background: #eee;
font-family: "Asap";
font-weight: bold;
}
.card {
position: absolute;
top: 50%;
left: 50%;
width: 300px;
height: 300px;
margin: -150px;
float: left;
perspective: 500px;
}
.content {
position: absolute;
width: 100%;
height: 100%;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
transition: transform 1s;
transform-style: preserve-3d;
}
.card:hover .content {
transform: rotateX(180deg);
transition: transform 0.5s;
}
.front,
.back {
position: absolute;
height: 100%;
width: 100%;
background: white;
line-height: 300px;
color: #00829B;
text-align: center;
font-size: 60px;
border-radius: 5px;
backface-visibility: hidden;
}
.back {
background: #00829B;
color: white;
transform: rotateX(180deg);
}