-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlider-Effect.css
More file actions
74 lines (63 loc) · 1.38 KB
/
Slider-Effect.css
File metadata and controls
74 lines (63 loc) · 1.38 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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#Slider-Effect{
margin: 0;
padding: 0;
height: 100vh;
display: flex;
border: 2px solid #000;
font-family: 'Poppins', sans-serif;
}
.slide{
position: relative;
background-color: #0f0;
height: 100%;
flex: 1;
border-right: 2px solid #000;
overflow: hidden;
transition: all 0.5s ease-in-out;
}
.slide:last-child{
border-right: none;
}
.slide:hover{
flex-grow: 5;
}
.slide:nth-child(1){
background: url(bg-img/img1.jpg);
background-position: center center;
}
.slide:nth-child(2){
background: url(bg-img/img2.jpg);
background-position: center center;
}
.slide:nth-child(3){
background: url(bg-img/img3.jpg);
background-position: center center;
}
.slide:nth-child(4){
background: url(bg-img/img4.jpg);
background-position: center center;
}
.slide:nth-child(5){
background: url(bg-img/img5.jpg);
background-position: center center;
}
.slide .content{
position: absolute;
bottom: 0;
margin: 40px;
padding: 30px;
background: #000;
color: #fff;
visibility: hidden;
opacity: 0;
transition: 0s;
transform: translateY(100px);
}
.slide:hover .content{
visibility: visible;
opacity: 1;
transition: 0.5s;
transition-delay: 0.5s;
transform: translateY(0);
}