-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
39 lines (35 loc) · 663 Bytes
/
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
.images-container {
max-width: 1100px;
height: 900px;
margin: 0 auto;
display: flex;
border: 2px solid #222;
}
.images-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 400ms;
}
.images-container .image {
position: relative;
overflow: hidden;
}
.images-container .description {
position: absolute;
bottom: 0;
background: #222;
color: #fff;
padding: 8px 16px;
box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.4);
opacity: 0;
transition: all 400ms;
width: 100%;
}
.images-container .image:hover .description {
opacity: 1;
bottom: 0;
}
.images-container .image:hover img {
transform: scale(1.1);
}