-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharx_slider.css
More file actions
102 lines (101 loc) · 1.72 KB
/
arx_slider.css
File metadata and controls
102 lines (101 loc) · 1.72 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.container {
margin: 20px 0 20px 0;
}
.slider * {
transition : all 0.4s ease 0s ;
user-select: none;
}
.slider {
background: #ddd;
margin: auto;
width: 80%;
height: 38vw;
overflow: hidden;
border-radius: 10px;
position: relative;
}
.slider img{
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
opacity: 0;
}
.slider_button {
font-family: tahoma;
position: absolute;
width: 28px;
height: 28px;
padding: 10px;
text-align: center;
font-size: 20px;
font-weight: bold;
color: #fff;
background: rgba(255,255,255,0.5);
border-radius: 200px;
cursor: pointer;
top: 50%;
margin-top: -24px;
}
.slider_button:hover {
transform: scale(1.1) rotate(360deg);
background-color: rgba(255,50,50,0.5);
}
.left {
left: 10px;
}
.left::after {
content: "<";
}
.right {
right: 10px;
}
.right::after {
content: ">";
}
.slider_dots_holder {
padding: 5px;
background: rgba(255,255,255,0.3);
position: absolute;
bottom: 15px;
right: 15px;
border-radius: 10px;
}
.slider_dots_holder:hover {
background: rgba(255,255,255,0.6);
}
.slider_dots_holder:hover .slider_dots {
width: 20px;
height: 20px;
}
.slider_dots {
float: left;
margin: 5px;
background: #fff;
width: 10px;
height: 10px;
border-radius: 30px;
cursor: pointer;
opacity: 0.5;
}
.slider_alts {
background: #fff;
opacity: 0;
position: absolute;
bottom: 15px;
left: 15px;
border-radius: 10px;
padding: 10px;
}
.slider_dots:hover {
transform : scale(1.2);
opacity: 0.8;
background: #f55;
}
@media only screen and (max-width: 1100px) {
.slider{
width: 99%;
height: 40vw;
}
}