-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslider.css
More file actions
87 lines (72 loc) · 1.16 KB
/
slider.css
File metadata and controls
87 lines (72 loc) · 1.16 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
75
76
77
78
79
80
81
82
83
84
.slider {
height: 100vh;
position: relative;
overflow: hidden;
}
.slider-item {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 1;
}
.hidden-slide {
visibility: hidden;
}
.fas.fa-spinner.fa-spin {
font-size: 50px;
color: #bbbbbb;
position: absolute;
left: calc(50% - 25px);
top: calc(50% - 25px);
}
.slider-item img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.slider-leftArrow, .slider-rightArrow {
position: absolute;
top: 47%;
z-index: 3;
color: #bbbbbb;
cursor: pointer;
font-size: 50px;
}
.slider-leftArrow {
left: 5%;
}
.slider-rightArrow {
right: 5%;
}
/* animation */
.slider-leftToRightAnimation{
animation-name: leftToRight;
animation-iteration-count: 1;
animation-duration: 0.5s;
position: relative;
}
@keyframes leftToRight{
from{
left: -100%;
}
to{
left: 0;
}
}
.slider-rightToLeftAnimation{
animation-name: rightToLeft;
animation-iteration-count: 1;
animation-duration: 0.5s;
position: relative;
}
@keyframes rightToLeft{
from{
left: 100%;
}
to{
left: 0;
}
}