-
Notifications
You must be signed in to change notification settings - Fork 0
/
original.html
255 lines (215 loc) · 6.84 KB
/
original.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!doctype html>
<html>
<head>
<title>Stellar.js - iOS Demo</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<style type="text/css">
html {
overflow: hidden;
background: #333;
font-family: Helvetica;
}
#container {
position: absolute;
left: 0;
top: 44px;
bottom: 24px;
width: 100%;
background: black;
overflow: hidden;
}
.bar {
position: absolute;
background: #222;
left: 0;
width: 100%;
color: #fff;
padding: 5px 0;
font-size: 10px;
font-weight: bold;
text-align: center;
text-shadow: 0 -2px 0 black;
-webkit-box-sizing: border-box;
}
.bar.top {
top: 0;
height: 44px;
border-bottom: 1px solid #000;
padding: 10px;
font-size: 22px;
}
.bar.bottom {
bottom: 0;
}
/* My styles */
#page {
height: 1000px;
overflow: hidden;
position: relative;
}
.sections {
margin: 0 auto;
width: 290px;
}
.section {
position: relative;
height: 35px;
}
.section.two {
left: 40px;
}
.section.three {
left: 50px;
}
.section.four {
left: 40px;
}
.section.five {
left: 60px;
}
.section.seven {
left: 10px;
}
.section.eight {
left: 20px;
}
.section.nine {
left: 40px;
}
.section.ten {
left: 30px;
}
.stellar-particle {
background-color: white;
height: 20px;
position: absolute;
width: 20px;
z-index: 999;
}
.stellar-particle.one {
left: 10px;
top: 10px;
}
.stellar-particle.two {
left: 60px;
top: 60px;
}
.stellar-particle.three {
left: 110px;
top: 110px;
}
.stellar-particle.four {
left: 160px;
top: 160px;
}
.stellar-particle.five {
left: 210px;
top: 210px;
}
a {
color: white;
display: inline-block;
border-bottom: 1px solid white;
text-decoration: none;
}
</style>
<script type="text/javascript" src="http://markdalgleish.com/projects/stellar.js/demos/js/scrollability.min.js"></script>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="http://markdalgleish.com/projects/stellar.js/js/stellar.js"></script>
<script language="javascript">
$(function(){
$('#page').stellar({
horizontalScrolling: false,
scrollProperty: 'transform',
positionProperty: 'transform',
verticalOffset: -100
});
//Prevent text selection
$(document).mousedown(function(e){
e.preventDefault();
});
});
</script>
</head>
<body>
<div id="container">
<div id="page" class="scrollable vertical">
<div class="sections">
<div class="section one">
<div class="stellar-particle one" data-stellar-ratio="3"></div>
<div class="stellar-particle two" data-stellar-ratio="5"></div>
<div class="stellar-particle three" data-stellar-ratio="7"></div>
<div class="stellar-particle four" data-stellar-ratio="4"></div>
<div class="stellar-particle five" data-stellar-ratio="9"></div>
</div>
<div class="section two">
<div class="stellar-particle one" data-stellar-ratio="8"></div>
<div class="stellar-particle two" data-stellar-ratio="4"></div>
<div class="stellar-particle three" data-stellar-ratio="2"></div>
<div class="stellar-particle four" data-stellar-ratio="8"></div>
<div class="stellar-particle five" data-stellar-ratio="10"></div>
</div>
<div class="section three">
<div class="stellar-particle one" data-stellar-ratio="10"></div>
<div class="stellar-particle two" data-stellar-ratio="8"></div>
<div class="stellar-particle three" data-stellar-ratio="4"></div>
<div class="stellar-particle four" data-stellar-ratio="8"></div>
<div class="stellar-particle five" data-stellar-ratio="10"></div>
</div>
<div class="section four">
<div class="stellar-particle one" data-stellar-ratio="4"></div>
<div class="stellar-particle two" data-stellar-ratio="6"></div>
<div class="stellar-particle three" data-stellar-ratio="3"></div>
<div class="stellar-particle four" data-stellar-ratio="8"></div>
<div class="stellar-particle five" data-stellar-ratio="7"></div>
</div>
<div class="section five">
<div class="stellar-particle one" data-stellar-ratio="2"></div>
<div class="stellar-particle two" data-stellar-ratio="4"></div>
<div class="stellar-particle three" data-stellar-ratio="6"></div>
<div class="stellar-particle four" data-stellar-ratio="8"></div>
<div class="stellar-particle five" data-stellar-ratio="10"></div>
</div>
<div class="section six">
<div class="stellar-particle one" data-stellar-ratio="9"></div>
<div class="stellar-particle two" data-stellar-ratio="4"></div>
<div class="stellar-particle three" data-stellar-ratio="3"></div>
<div class="stellar-particle four" data-stellar-ratio="6"></div>
<div class="stellar-particle five" data-stellar-ratio="10"></div>
</div>
<div class="section seven">
<div class="stellar-particle one" data-stellar-ratio="8"></div>
<div class="stellar-particle two" data-stellar-ratio="6"></div>
<div class="stellar-particle three" data-stellar-ratio="7"></div>
<div class="stellar-particle four" data-stellar-ratio="3"></div>
<div class="stellar-particle five" data-stellar-ratio="9"></div>
</div>
<div class="section eight">
<div class="stellar-particle one" data-stellar-ratio="2"></div>
<div class="stellar-particle two" data-stellar-ratio="8"></div>
<div class="stellar-particle three" data-stellar-ratio="4"></div>
<div class="stellar-particle four" data-stellar-ratio="6"></div>
<div class="stellar-particle five" data-stellar-ratio="7"></div>
</div>
<div class="section nine">
<div class="stellar-particle one" data-stellar-ratio="8"></div>
<div class="stellar-particle two" data-stellar-ratio="9"></div>
<div class="stellar-particle three" data-stellar-ratio="3"></div>
<div class="stellar-particle four" data-stellar-ratio="6"></div>
<div class="stellar-particle five" data-stellar-ratio="4"></div>
</div>
<div class="section ten">
<div class="stellar-particle one" data-stellar-ratio="9"></div>
<div class="stellar-particle two" data-stellar-ratio="5"></div>
<div class="stellar-particle three" data-stellar-ratio="6"></div>
<div class="stellar-particle four" data-stellar-ratio="2"></div>
<div class="stellar-particle five" data-stellar-ratio="7"></div>
</div>
</div>
</div>
</div>
</body>
</html>