-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (43 loc) · 1.63 KB
/
index.html
File metadata and controls
44 lines (43 loc) · 1.63 KB
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
<!DOCTYPE HTML>
<html lang="fr-FR">
<head>
<meta charset="UTF-8" />
<title>Vanilla Scrolly - Tools for scrollytelling</title>
<meta name="viewport" content="width=device-width" />
<meta name="descript" content="Tools for scrollytelling" />
<link rel="stylesheet" type="text/css" href="css/style.css?v=0.1.1" />
<script src="js/vanilla-scrolly.js?v=0.1.1"></script>
</head>
<body>
<h1>Vanilla Scrolly - Tools for scrollytelling</h1>
<div id="wrapper" class="wrapper">
<div class="side">
<div class="block"><div>1</div></div>
<div class="block"><div>2</div></div>
<div class="block"><div>3</div></div>
<div class="block"><div>4</div></div>
<div class="block"><div>5</div></div>
</div>
<div id="sticky" class="sticky" data-steps="5">
<div class="content1">Content 1</div>
<div class="content2">Content 2</div>
<div class="content3">Content 3</div>
<div class="content4">Content 4</div>
<div class="content5">Content 5</div>
</div>
</div>
<div class="spacer"></div>
<script>
(function(){
new vanillaScrolly(document.getElementById('sticky'), {
/* Minimal width */
minScreenWidth: 300,
/* Custom callback */
callback: function($item, percent, step) {
console.log(percent);
}
});
}());
</script>
</body>
</html>