-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive-slider.css
More file actions
129 lines (106 loc) · 1.94 KB
/
responsive-slider.css
File metadata and controls
129 lines (106 loc) · 1.94 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* GENERAL */
ol, ul, li {
list-style-type: none;
margin: 0;
padding: 0;
}
/* LAYOUT*/
header, section, footer {
margin: 40px auto;
width: 100%;
max-width: 960px;
}
img {
max-width: 100%;
}
/* TYPOGRAPHY */
/* SLIDER WRAP*/
.slider-wrap {
width: 100%;
max-width: 600px;
margin: auto;
overflow: hidden;
position: relative;
padding-bottom: 20px;
/* change or remove max-width to make slider larger*/
}
/* SLIDER */
.slider-wrap ul {
position: absolute;
top: 0;
left: 0;
/* know compass can be used here, wanted to keep it vanilla */
-webkit-transform: translateX(0px);
-moz-transform: translateX(0px);
-o-transform: translateX(-0px);
-ms-transform: translateX(-0px);
transform: translateX(0px);
-webkit-transition: -webkit-transform 1s;
-moz-transition: -webkit-transform 1s;
-o-transition: -webkit-transform 1s;
-ms-transition: -webkit-transform 1s;
transition: transform 1s;
}
.slider-wrap ul > li {
/*height and width should equal slider-wrap*/
position: relative;
float: left;
}
.slider-wrap ul > li img {
width: 100%;
height: auto;
}
/* SLIDES */
.slider-wrap h3 {
text-transform: uppercase;
background-color: #000;
color: white;
font-size: 30px;
position: absolute;
bottom: -10px;
padding: 0 10px;
}
.arrows {
display: block;
width: 0;
height: 0;
position: absolute;
top: 0;
bottom: 0;
margin: auto;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
}
.arrows.left {
left: 0;
border-right:20px solid #F2F2F2;
}
.arrows.right {
right: 0;
border-left: 20px solid #F2F2F2;
}
.arrows.right:hover {
border-left:20px solid #ddd;
}
.arrows.left:hover {
border-right:20px solid #ddd;
}
.pagination {
position: absolute;
bottom: 0;
right: 0;
}
.pagination li {
float: left;
}
.pagination a {
width: 20px;
height: 20px;
display: block;
background-color: #718C44;
border-radius:80%;
margin-right: 5px;
}
.pagination a:hover, .pagination a.cur {
background-color: #425430;
}