-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (35 loc) · 1.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>slothy - example</title>
<style>
img {
width: 100%;
margin-bottom: 500px;
border: 2px solid #222;
}
</style>
</head>
<body>
<img data-slothy="http://loremflickr.com/1600/1200" alt="">
<img data-slothy="http://loremflickr.com/1200/1000" alt="">
<img data-slothy="http://loremflickr.com/2000/1500" alt="">
<img data-slothy="http://loremflickr.com/3000/1600" alt="">
<img data-slothy="http://loremflickr.com/1000/1200" alt="">
<img data-slothy="http://loremflickr.com/1900/1400" alt="">
<img data-slothy="http://loremflickr.com/1500/1000" alt="">
<img data-slothy="http://loremflickr.com/2300/1800" alt="">
<img data-slothy="http://loremflickr.com/1700/1200" alt="">
<img data-slothy="http://loremflickr.com/1900/1200" alt="">
<img data-slothy="http://loremflickr.com/1000/800" alt="">
<script src="../dist/slothy.umd.js"></script>
<script>
slothy({
offset: 300,
onLoad: function (image) {
alert(image.src + ' loaded!')
}
})
</script>
</body>
</html>