-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (103 loc) · 1.91 KB
/
style.css
File metadata and controls
119 lines (103 loc) · 1.91 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #181d31;
}
.container {
width: 1050px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.container .card {
position: relative;
width: 320px;
height: 420px;
margin: 15px;
overflow: hidden;
}
.container .card span {
position: absolute;
display: block;
width: 0;
height: 0;
transform: translate(-50%, -50%);
border-radius: 50%;
opacity: 0.85;
background: #678983;
z-index: 1;
transition: width 0.5s, height 0.5s;
}
.container .card:hover span {
width: 1000px;
height: 1000px;
}
.container .card .imgBx {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.container .card .imgBx img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
object-fit: cover;
}
.container .card .content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
.container .card .content div {
padding: 40px;
color: #fff;
visibility: hidden;
opacity: 0;
transform: translateY(50px);
transition: 0.2s;
text-align: center;
}
.container .card:hover .content div {
visibility: visible;
opacity: 1;
transform: translateY(0);
}
h2 {
text-transform: uppercase;
}
@media screen and (max-width: 370px) {
.container .card .content div h2 {
font-size: 1rem;
}
.container .card .content div p {
font-size: 0.75rem;
}
.container .card .content div {
padding: 20px;
}
.container .card {
width: calc(320px - 100px);
height: calc(420px - 100px);
margin: 5px;
}
}