forked from Prinzhorn/skrollr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shim.html
37 lines (29 loc) · 740 Bytes
/
shim.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
<!DOCTYPE html>
<html>
<head class="no-skrollr">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>Your title</title>
</head>
<body>
<div id="skrollr-body">
<!--
Put all your elements here.
-->
</div>
<script type="text/javascript" src="dist/skrollr.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="dist/skrollr.ie.min.js"></script>
<![endif]-->
<script type="text/javascript">
var s = skrollr.init();
//Or you may call the init-function at some other point. You could for example use an image preloader.
/*
window.onload = function() {
//Calling it twice doesn't hurt.
skrollr.init();
};
*/
</script>
</body>
</html>