-
Notifications
You must be signed in to change notification settings - Fork 64
/
index.html
53 lines (47 loc) · 1.9 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
52
53
<!DOCTYPE html>
<html>
<head>
<title>FoldScroll</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link href="https://fonts.googleapis.com/css?family=Play:400,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section id="info">
<header>
<hgroup>
<h1>FoldScroll</h1>
<h2>Experimental CSS 3D scroll behavior</h2>
</hgroup>
<a href="https://github.com/soulwire/FoldScroll/zipball/master">Download</a>
<a href="https://github.com/soulwire/FoldScroll">View on Github</a>
</header>
<aside>
<p>Quotes: <a href="http://butdoesitfloat.com/" target="_blank">butdoesitfloat.com</a></p>
</aside>
</section>
<section class="quotes"></section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="js/foldscroll.js"></script>
<script src="js/quotes.js"></script>
<script type="text/javascript">
$(function() {
var limit = 15;
var $container = $( '.quotes' );
// Populate
for ( var i = 0, n = Math.min( limit, quotes.length ); i < n; i++ ) {
$container.append(
'<article>' +
'<p>' + quotes[i].quote + '</p>' +
'<em>' + quotes[i].author + '</em>' +
'</article>');
}
// Call the foldscroll plugin
$container.foldscroll({
perspective: 900,
margin: '220px'
});
});
</script>
</body>
</html>