-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
175 lines (169 loc) · 5.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!doctype html>
<html lang='en'>
<head>
<title>flipbook.js</title>
<meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no'>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<style>
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-size: 17px;
font-family: Helvetica, sans-serif;
font-weight: 300;
}
article {
}
p {
color: #333;
font-size: 1.2em;
line-height: 1.6;
max-width: 40em;
padding: 1em;
margin: 0 auto;
}
h1 {
font-weight: 300;
margin: 1em;
text-align: center;
}
p.description {
font-style: italic;
font-size: 1em;
text-align: center;
max-width: 100%;
}
.s-loader {
position: relative;
}
.s-loader--progress {
width: 0;
height: 2px;
margin-top: 0.25em;
margin-bottom: 2em;
background-color: #ccc;
}
.s-loader--text {
color: #999;
text-align: center;
}
#snowboard {
margin: 2em 0;
}
#stylish {
margin: 2em 0;
}
#walk {
font-size: 1.2em;
max-width: 40em;
padding: 1em;
margin: 0 auto;
}
</style>
</head>
<body>
<article>
<h1>Flipbook.js Demo</h1>
<p class='description'>Scroll-based inline flipbook animation <a href='https://github.com/russellgoldenberg/flipbook.js'>library</a> for the internet. And responsive.</p>
<p>
Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<div id='snowboard'></div>
<div class='s-loader'>
<div class='s-loader--text'>Loading animation...</div>
<div class='s-loader--progress'></div>
</div>
<p>
Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Celery quandong swiss chard chicory earthnut pea potato. Salsify taro catsear garlic gram celery bitterleaf wattle seed collard greens nori. Grape wattle seed kombu beetroot horseradish carrot squash brussels sprout chard.
</p>
<div id='walk'></div>
<p>
Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Celery quandong swiss chard chicory earthnut pea potato. Salsify taro catsear garlic gram celery bitterleaf wattle seed collard greens nori. Grape wattle seed kombu beetroot horseradish carrot squash brussels sprout chard.
</p>
<div id='stylish'></div>
<p>
Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.
</p>
<p>
Celery quandong swiss chard chicory earthnut pea potato. Salsify taro catsear garlic gram celery bitterleaf wattle seed collard greens nori. Grape wattle seed kombu beetroot horseradish carrot squash brussels sprout chard.
</p>
<p>
By <a href='http:russellgoldenberg.com'>Russell Goldenberg</a>
</p>
<p>
<a href='https://github.com/russellgoldenberg/flipbook.js'>Read the documentation</a>
</p>
</article>
<script src='flipbook.min.js'></script>
<script>
var progressEl = document.getElementsByClassName('s-loader--progress')[0];
flipbook({
id: 'snowboard',
path: 'img/snowboard/',
filename: '%3d',
extension: 'jpg',
count: 42,
speed: 0.8,
cover: true,
progress: function(data) {
progressEl.style.width = data.percent + '%';
},
loaded: function() {
var loaderEl = document.getElementsByClassName('s-loader')[0];
loaderEl.parentNode.removeChild(loaderEl);
}
});
flipbook({
id: 'walk',
path: 'img/walk',
filename: '%1d',
extension: 'jpg',
count: 86,
speed: 0.5,
});
flipbook({
id: 'stylish',
path: 'img/stylish/',
filename: '%1d',
extension: 'jpg',
sprite: true,
rows: [5, 5, 5, 5],
speed: 1,
cover: true,
gif: true
});
</script>
</body>
</html>