forked from UseAllFive/wipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
62 lines (49 loc) · 1.85 KB
/
example.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wipe Slideshow Demo</title>
<style type="text/css">
.slides {
position: relative;
}
.slides>li {
position: absolute;
top: 0;
left: 0;
width: 400px;
height: 250px;
overflow: hidden;
}
.slides>li>img {
width: 100%;
}
</style>
</head>
<body>
<a href="#" class="prev">Prev</a>
<a href="#" class="next">Next</a>
<ul id="slideshow" class="slides">
<li><img src="https://31.media.tumblr.com/09e35644c4d31a09ced4525bb9a2f33b/tumblr_n7os355Dfm1qz6f9yo7_r1_500.png" /></li>
<li><img src="https://31.media.tumblr.com/fd81384196550fb0f57d912acc178728/tumblr_n7oqut2kIA1qz6f9yo1_500.jpg" /></li>
<li><img src="https://31.media.tumblr.com/22bfddec03884732e34ab1a93384e594/tumblr_n7oog2kaVV1qz6f9yo2_500.jpg" /></li>
</ul>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="jquery.wipe.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var slideshow;
slideshow = $('#slideshow').wipe();
$('.prev').click(function(event) {
event.preventDefault();
slideshow.prev();
});
$('.next').click(function(event) {
event.preventDefault();
slideshow.next();
});
});
</script>
</body>
</html>