-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
69 lines (69 loc) · 1.29 KB
/
style.css
File metadata and controls
69 lines (69 loc) · 1.29 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: rgb(218, 252, 255);
font-family: 'Archivo Black', sans-serif;
}
.card {
position: absolute;
top: 50%;
left: 50%;
height: 400px;
width: 300px;
transform: translate(-50%, -50%);
transform-style: preserve-3d;
perspective: 600px;
transition: 0.5s;
}
.card-front {
width: 100%;
height: 100%;
position: absolute;
background: url("./img/card_cover.jpg");
background-size: contain;
top: 0;
left: 0;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 60px;
color: #fff;
text-align: center;
font-weight: 600;
box-shadow: 8px 8px 16px rgba(0,0,0,0.3);
transform: rotateX(0deg);
transition: 0.5s;
}
.card-back {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
backface-visibility: hidden;
box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
transform:rotateX(180deg);
background: #fff;
transition: 0.5s;
}
.card:hover .card-front {
transform: rotateX(-180deg);
}
.card:hover .card-back {
transform: rotateX(0deg)
}
.title {
margin-top: 30px;
font-size: 24px;
text-align: center;
}
.desc {
padding: 20px;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
line-height: 1.4;
}