-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (81 loc) · 1.52 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
html, body {
font-family: helvetica, arial, sans-serif;
margin: 0;
height: 100%;
}
.image-slider {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.images{
display: flex;
height: 100%;
}
.images img {
object-fit: cover;
transition: all 0.5s ease-out;
}
.left, .right{
width: 10%;
display: flex !important;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
font-size: 3em !important;
margin: auto;
position: absolute;
top: 0;
height: 100%;
user-select: none;
cursor: pointer;
transition: all 0.2s ease-in;
}
.right {
right: 0;
}
.left div, .right div {
z-index: 1;
}
.left::before, .right::before {
content: '';
position: absolute;
width: 200%;
height: 100%;
opacity: 0;
transition: all 0.3s ease-in;
}
.left:hover::before {
opacity: 1;
background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}
.right:hover::before {
opacity: 1;
background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}
.slider {
width: fit-content;
user-select: none;
margin: auto;
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.slider input {
display: none;
}
.slider-button {
display: inline-block;
width: 1.1em;
height: 1.1em;
background-color: white;
margin: 1em 1em;
border-radius: 50%;
transition: all 0.2s ease-out;
}
.slider-button:hover {
transform: scale(1.2);
}