This repository has been archived by the owner on Feb 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
slider.css
212 lines (165 loc) · 3.92 KB
/
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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/* User customizable settings */
#slide-1,
#slide-2,
#slide-3,
#slide-4 {
background-size: cover;
}
#slide-1 {
background-image: url('img/slide-1.jpg');
}
#slide-2 {
background-image: url('img/slide-2.jpg');
}
#slide-3 {
background-image: url('img/slide-3.jpg');
}
#slide-4 {
background-image: url('img/slide-4.jpg');
}
/* CSS Components */
.slider-wrapper {
position: relative;
width: 100%;
height: 22rem;
overflow: hidden;
/* Dark background for nice transition effect */
background: #000;
}
/* Slider Start */
.slider-content {
padding: 0;
margin: 0;
max-height: 100%;
list-style: none;
overflow: hidden;
}
.slider-content > li {
position: relative;
float: left;
overflow: hidden;
opacity: 0;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
-moz-perspective: 1000;
perspective: 1000;
/* Transition mode: cover-flow;
doesn't work with position: absolute on li's */
-webkit-transition: all 1500ms ease-in-out;
-moz-transition: all 1500ms ease-in-out;
-o-transition: all 1500ms ease-in-out;
-ms-transition: all 1500ms ease-in-out;
transition: all 1500ms ease-in-out;
/* Transition mode: push; */
-webkit-transition: width 1000ms ease-in-out;
-moz-transition: width 1000ms ease-in-out;
-o-transition: width 1000ms ease-in-out;
-ms-transition: width 1000ms ease-in-out;
transition: width 1000ms ease-in-out;
/* Transition mode: opacity; */
-webkit-transition: opacity 750ms ease-in-out;
-moz-transition: opacity 750ms ease-in-out;
-o-transition: opacity 750ms ease-in-out;
-ms-transition: opacity 750ms ease-in-out;
transition: opacity 750ms ease-in-out;
}
.slider-content > li:not(:target) {
opacity: 0;
width: 0;
}
.slider-content > li:target,
.slider-content > .active {
opacity: 1;
width: 100%;
height: 22rem;
}
.slider-content > .active {
opacity: 1 !important;
width: 100% !important;
}
.slider--bullets {
position: absolute;
z-index: 30;
width: 4rem;
height: 1rem;
left: 47.5%;
bottom: 1rem;
}
.slider--bullets > li {
display: inline-block;
}
.slider--bullets > li > a {
margin: auto;
max-width: none;
text-decoration: none;
font-family: Helvetica, Arial, sans-serif !important;
}
.slider--bullets > li > a:before {
position: relative;
z-index: 90;
display: block;
content: '\2022';
font-size: 1.5rem;
line-height: 1;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
color: rgba(255, 255, 255, 0.65);
}
.slider--bullets > li > a.active:before {
color: #fff;
}
/* Slider End */
.slider-content > li > h2,
.slider-content > li > p,
.slider-content > li > a {
max-width: 27rem;
margin-left: 1rem;
}
.slider-content > li > h2,
.slider-content > li > p {
text-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
}
.slider-content > li > h2 {
margin-top: 8rem;
font-family: 'museo-slab', Times, serif;
font-weight: 500;
line-height: 1;
letter-spacing: 1px;
}
.slider-content > li > h3,
.slider-content > li > p {
margin: 0 0 0 1rem;
font-family: 'Helvetica Neue', 'Helvetica', 'Segoe UI Light', sans-serif;
color: #fff;
}
.slider-content > li > h3 {
margin-top: 12rem;
font-size: 3rem;
font-weight: 100;
letter-spacing: 1px;
}
.slider-content > li > p {
font-weight: 100;
letter-spacing: 2px;
max-width: 17rem;
}
.slider-clickframe {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
width: 100%;
height: 100%;
background: #fff;
opacity: 0;
filter: alpha(opacity=0);
-webkit-tap-highlight-color: rgba(0,0,0,0);
}