-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jade
94 lines (89 loc) · 2.24 KB
/
index.jade
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
doctype html5
html
head
meta(charset='utf8')
title coffee-DragSlider Demo
link(rel='stylesheet', href='styles/coffee-drag-slider.css')
link(rel='stylesheet', href='//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css')
body
style.
.container {
max-width: 940px;
margin: auto;
}
.slider li{
height: 400px!important;
background: red;
}
.slider li:nth-of-type(2){
background: blue;
}
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to {
-webkit-transform: rotate(1turn);
}
}
.progress {
position: absolute;
display: inline-block;
width: 5em;
height: 5em;
margin: 0 .5em;
font-size: 12px;
text-indent: 999em;
overflow: hidden;
-webkit-animation: spin 1s infinite steps(8);
top: 50%;
left: 50%;
margin-top: -2.5em;
margin-left: -2.5em;
z-index: 99999;
}
.small.progress {
font-size: 6px;
}
.large.progress {
font-size: 24px;
}
.progress:before,
.progress:after,
.progress > div:before,
.progress > div:after {
content: '';
position: absolute;
top: 0;
left: 2.25em;
width: .5em;
height: 1.5em;
border-radius: .2em;
background: #eee;
box-shadow: 0 3.5em #eee;
-webkit-transform-origin: 50% 2.5em;
}
.progress:before {
background: #555;
}
.progress:after {
-webkit-transform: rotate(-45deg);
background: #777;
}
.progress > div:before {
-webkit-transform: rotate(-90deg);
background: #999;
}
.progress > div:after {
-webkit-transform: rotate(-135deg);
background: #bbb;
}
.container
slider(data-slider='{"draggable": true, "cycle": true, "autoHideBtns": false}')
section.sliderViewport
ul.sliderTrack
li item-1
li item-2
li item-3
script(src='//code.jquery.com/jquery-1.11.0.min.js')
script(src='js/src/coffee-drag-slider.js')