-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
72 lines (68 loc) · 1.21 KB
/
style.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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
.wrapper{
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
}
.container{
max-width: 1200px;
margin: 0 auto;
padding: 20px;
height: 100%;
}
#heading{
text-align: center;
font-size: 3rem;
margin: 20px;
margin-bottom:20px ;
}
.gallery{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.card{
width: 32%;
overflow: hidden;
position: relative;
border-radius: 10px;
margin-bottom: 20px;
}
.card img{
object-fit: cover;
width: 100%;
height: 100%;
filter: grayscale(100%);
box-shadow: 0 0 20px #333;
}
.card:hover img {
transform: scale(1.03);
transition: 0.5s;
filter: grayscale(0%);
filter: drop-shadow(0 0 10px #333);
}
.card figcaption{
position: absolute;
padding: 25px;
font-size: 16px;
font-weight: 500;
transition: 0.4s;
color: white;
left: 0;
bottom: 0;
opacity: 0;
height: 20%;
width: 100% ;
}
.card:hover figcaption{
opacity: 1;
transform: scale(1.03);
transform: translateY(-50%) rotate(360deg) skew(-10deg);
transition: 1s;
color: yellow;
}