-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
81 lines (70 loc) · 1.42 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
opacity: 0;
}
html,
body {
font-family: "Poppins", sans-serif;
background-color: #f4f4f4;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 1.5rem;
}
#wrapper {
position: relative;
}
#container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
height: 90rem;
max-width: 1200px;
flex-wrap: wrap;
margin: 0 auto;
padding-bottom: 20px;
}
.card {
width: 100%;
position: relative;
overflow: hidden;
border-radius: 1rem;
display: flex;
justify-content: flex-start;
align-items: flex-end;
transition: 0.5s;
cursor: pointer;
box-shadow: 0 0 10px #333;
}
.card:hover {
transform: scale(1.03);
box-shadow: 0 0 20px #333;
}
.card:hover .imgtext,
.card:hover img {
opacity: 1;
filter: grayscale(0%);
}
img {
height: 100%;
width: 100%;
object-fit: cover;
filter: grayscale(100%);
position: absolute;
}
.imgtext {
position: absolute;
position: absolute;
color: white;
padding: 15px;
opacity: 0;
font-size: 25px;
width: 100%;
background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}