-
Notifications
You must be signed in to change notification settings - Fork 0
/
slider.css
57 lines (51 loc) · 970 Bytes
/
slider.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
.slider-container {
position: relative;
overflow-x: scroll;
display: flex;
flex-direction: row;
justify-content: space-between;
scroll-behavior: smooth;
-ms-box-orient: horizontal;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -moz-flex;
display: -webkit-flex;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.slider-container::-webkit-scrollbar {
display: none;
}
.slider-element {
min-width: auto;
margin: 0px auto;
padding: 10px;
}
.slider-element:nth-of-type(1){
margin-left: 0;
}
.left-btn,
.right-btn {
height: 25px;
width: 25px;
position: sticky;
top: 45%;
display: flex;
border-radius: 50%;
z-index: 1;
border-radius: 1px solid #fdfdfd;
border: 1px solid grey;
text-align: center;
align-items: center;
align-content: center;
background-color: #fdfdfd;
box-shadow: 0px 8px 16px 0px #f1f1f1;
color: #5f5d5d;
}
.left-btn {
left: 0;
}
.right-btn {
right: 0;
}