-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
103 lines (90 loc) · 1.42 KB
/
styles.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
94
95
96
97
98
99
100
101
102
103
main {
display: flex;
justify-content: center;
}
.slider {
position: relative;
margin: 20px 0;
}
.slider__images {
position: relative;
width: 500px;
height: 250px;
}
.slider__images-title {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5);
color: #fff;
text-align: center;
z-index: 1;
padding: 7px 0;
}
.slider__images .image {
background-size: cover;
background-position: center center;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 0;
transition: opacity 800ms ease;
}
.slider__images .image.active {
opacity: 1;
}
.slider__arrows {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: #fff;
}
.slider__arrow {
position: absolute;
width: 15%;
height: 100%;
font-size: 20px;
text-align: center;
cursor: pointer;
opacity: 0;
background: rgba(0, 0, 0, 0.4);
transition: opacity 0.4s ease;
display: flex;
align-items: center;
justify-content: center;
}
.slider__arrow:hover {
opacity: 1;
}
.slider__arrow.left {
left: 0;
}
.slider__arrow.right {
right: 0;
}
.slider__dots {
display: flex;
justify-content: center;
position: absolute;
left: 0;
bottom: -20px;
width: 100%;
}
.slider__dots-item {
width: 10px;
height: 10px;
background: #ccc;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
transition: background 0.4s ease;
}
.slider__dots-item:hover,
.slider__dots-item.active {
background: #000;
}