-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
91 lines (81 loc) · 1.64 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
padding: 0;
font-family: Poppins, sans-serif;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
max-width: 1000px;
margin: auto;
row-gap: 30px;
}
.card {
position: relative;
width: 300px;
height: 200px;
overflow: hidden;
border-radius: 25px;
-webkit-box-shadow: 10px 10px 14px -11px rgba(66, 68, 90, 1);
-moz-box-shadow: 10px 10px 14px -11px rgba(66, 68, 90, 1);
box-shadow: 10px 10px 14px -11px rgba(66, 68, 90, 1);
}
.card-img,
.overlay-img {
top: 0;
left: 0;
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.overlay-img {
transition: opacity 0.3s ease;
z-index: 2;
}
.card-title,
.card-title-front,
.hiroshima,
.hiroshima-front {
position: absolute;
width: 100%;
left: 0;
text-align: center;
font-weight: 800;
margin: 0;
padding: 10px 0;
font-size: 28px;
transition: bottom 0.3s ease;
}
.card-title, .hiroshima {
color: white;
bottom: -100%;
z-index: 1;
}
.card-title-front, .hiroshima-front {
color: transparent;
-webkit-text-stroke: 0.5px white;
bottom: -100%;
z-index: 3;
transition: opacity 0s 0.25s;
opacity: 0;
}
.card:hover .card-title,
.card:hover .card-title-front {
bottom: 20%;
transform: translateY(-50%);
}
.card:hover .hiroshima,
.card:hover .hiroshima-front {
bottom: -5%;
transform: translateY(-50%);
}
.card:hover .card-title-front, .card:hover .hiroshima-front {
display: block;
opacity: 1;
}