-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (121 loc) · 3.97 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta name="description" content="Simple and lightweight shift/slide plugin for jquery(less than 1kb).">
<meta name="keywords" content="shift,slide,jquery,jquery-shifter,shifter,slider">
<title>jquery-shifter - Simple and lightweight shift/slide plugin for jquery(less than 1kb).</title>
<link rel="stylesheet" href="dist/jquery-shifter.min.css"/>
<style>
.shifter-wrap {
margin-bottom: 50px;
}
.shifter img {
height: 150px;
}
.shifter-forward {
margin-right: 30px;
}
.demo3 {
position: relative;
}
.shifterArrow {
position: absolute;
top: 35px;
font-size: 24px;
padding: 20px;
}
#backwardArrow {
right: 0;
}
.left-arrow {
width: 0;
height: 0;
border-bottom: 10px solid transparent;
border-top: 10px solid transparent;
border-right: 10px solid #2f2f2f;
font-size: 0;
line-height: 0;
}
.right-arrow {
width: 0;
height: 0;
border-bottom: 10px solid transparent;
border-top: 10px solid transparent;
border-left: 10px solid #2f2f2f;
font-size: 0;
line-height: 0;
}
</style>
<script src="public/js/jquery.min.js"></script>
<script src="dist/jquery-shifter.min.js"></script>
<script>
$(function () {
$('#shifter1').shifter();
$('#shifter2').shifter({
switcher: false
});
$('#shifter3').shifter({
forwardSelector: '#forwardArrow',
backwardSelector: '#backwardArrow',
speed: 1000,
maxShift: 3
});
$('#shifter4').shifter({
speed: 1000,
maxShift: 1
});
});
</script>
</head>
<body>
<h2>demo 1</h2>
<div class="shifter-wrap">
<ul id="shifter1" class="shifter">
<li><img src="public/img/img1.jpg" /></li>
<li><img src="public/img/img2.jpg" /></li>
<li><img src="public/img/img3.jpg" /></li>
</ul>
</div>
<h2>demo 2</h2>
<div class="shifter-wrap">
<ul id="shifter2" class="shifter">
<li><img src="public/img/img1.jpg" /></li>
<li><img src="public/img/img2.jpg" /></li>
<li><img src="public/img/img3.jpg" /></li>
<li><img src="public/img/img4.jpg" /></li>
<li><img src="public/img/img5.jpg" /></li>
<li><img src="public/img/img6.jpg" /></li>
<li><img src="public/img/img7.jpg" /></li>
<li><img src="public/img/img8.jpg" /></li>
<li><img src="public/img/img9.jpg" /></li>
</ul>
</div>
<h2>demo 3</h2>
<div class="shifter-wrap demo3">
<ul id="shifter3" class="shifter">
<li><img src="public/img/img1.jpg" /><p>description 1</p></li>
<li><img src="public/img/img2.jpg" /><p>description 2</p></li>
<li><img src="public/img/img3.jpg" /><p>description 3</p></li>
<li><img src="public/img/img4.jpg" /><p>description 4</p></li>
<li><img src="public/img/img5.jpg" /><p>description 5</p></li>
<li><img src="public/img/img6.jpg" /><p>description 6</p></li>
<li><img src="public/img/img7.jpg" /><p>description 7</p></li>
<li><img src="public/img/img8.jpg" /><p>description 8</p></li>
<li><img src="public/img/img9.jpg" /><p>description 9</p></li>
</ul>
<a id="forwardArrow" class="shifterArrow" href="javascript:void(0)"><span class="left-arrow"></span></a>
<a id="backwardArrow" class="shifterArrow" href="javascript:void(0)"><span class="right-arrow"></span></a>
</div>
<h2>demo 4</h2>
<div class="shifter-wrap demo3">
<ul id="shifter4" class="shifter">
<li><img src="public/img/img1.jpg" /><p>description 1</p></li>
<li><img src="public/img/img2.jpg" /><p>description 2</p></li>
<li><img src="public/img/img3.jpg" /><p>description 3</p></li>
</ul>
</div>
</body>
</html>