-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
82 lines (72 loc) · 1.38 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html,
body {
font-family: "Poppins", sans-serif;
background-color: #f4f4f4;
}
.wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.wrapper h1 {
margin: 20px auto;
text-align: center;
font-size: 40px;
color: rgb(51, 51, 51);
/* color: #333333; */
}
.card {
width: 32%;
overflow: hidden;
height: auto;
border-radius: 10px;
margin-bottom: 20px;
position: relative;
transition: 0.5s;
display: flex;
justify-content: center;
align-items: center;
}
.card img {
height: 100%;
width: 100%;
filter: grayscale(100%);
object-fit: cover;
}
.card:hover {
transform: scale(1.03);
filter: drop-shadow(0 0 10px #333);
}
.card:hover img {
filter: grayscale(0);
}
.card figcaption{
position: absolute;
bottom: 0;
width: fit-content;
height: 16%;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
color: #fff;
padding: 25px;
opacity: 0;
text-align: center;
font-weight: 700;
font-size: 20px;
}
.card:hover figcaption{
opacity: 1;
bottom: 40%;
transform: translateY(-50%) rotate(360deg);
transition: 1s;
}