-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
59 lines (59 loc) · 2.02 KB
/
test.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
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
html, body {width: 100%; height: 100%; padding: 0; margin: 0;direction: ltr;}
body {display: table;}
.testSlider {display: table-cell; vertical-align: middle; text-align: center;}
.theSlider {width: 100%; height: 100%; background: #efefef; margin: 0 auto;}
.thisSlide {width: 100%;margin: 0 auto; height: 100%; background: #dd3629;border: 2px solid black; box-sizing: border-box;}
.thisSlide span {font-size: 30px;color: white;}
</style>
<link rel="stylesheet" href="dist/infinitySlider.min.css">
</head>
<body>
<div class="testSlider">
<div class="theSlider" id="slider">
<div>
<div class="thisSlide">
<span>1</span>
</div>
</div>
<div>
<div class="thisSlide">
<span>2</span>
</div>
</div>
<div>
<div class="thisSlide">
<span>3</span>
</div>
</div>
<div>
<div class="thisSlide">
<span>4</span>
</div>
</div>
<div>
<div class="thisSlide">
<span>5</span>
</div>
</div>
</div>
</div>
<script src="dist/infinitySlider.min.js"></script>
<script>
var go = document.getElementById('slider');
go.Slider({
direction: 'ltr',
loop: true,
arrow: true,
dot: true,
touch: true,
speed: 1000,
width: 1,
loop_speed: 2000
});
</script>
</body>
</html>