-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
51 lines (36 loc) · 1.12 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="src/style.css">
</head>
<body>
<div slider>
<div slide>
<img src="images/image-1.jpg" style="width:100%">
</div>
<div slide>
<img src="images/image-2.jpg" style="width:100%">
</div>
<div slide>
<img src="images/image-3.jpg" style="width:100%">
</div>
<div slide>
<img src="images/image-3.jpg" style="width:100%">
</div>
<div slide>
<img src="images/image-3.jpg" style="width:100%">
</div>
<a slidePrev onclick="slider.plusSlides()">❮</a>
<a slideNext onclick="slider.plusSlides()">❯</a>
</div>
<button onclick="slider.pause()">pause</button>
<button onclick="slider.play()">play</button>
<button onclick="slider.setTransition('bounceIn')">transition bounce</button>
<script src="src/slider.js"></script>
<script>
let slider = new SpSlider('[slider]', {});
</script>
</body>
</html>