-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest4.html
More file actions
56 lines (54 loc) · 1.35 KB
/
test4.html
File metadata and controls
56 lines (54 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<head>
<script src="skroller.js"></script>
<style>
.sectTitle { width:50%;
position:fixed;
display:block;
background-color:rgba(100,100,100,0.3);
color:red;
text-align:center;
font-family:"Comic Sans MS";
font-size:30px;
margin-left:-25%;
left:50%;
padding:0.5em;
}
.sectBkgd { width:100%;
height:110%;
}
</style>
</head>
<body style="height:3000px;background-color:black;" onload="skroller.init()" onscroll="skroller.update()">
<div style="width:100%;position:fixed;" class="skrollSpecial"
data-skroller="0:(top:0%);
75:(top:0%);
100:(top:-100%;);">
<img style="width:100%;height:100%;" src="r2d2.jpeg"/>
</div>
<div class="skrollSpecial sectTitle"
data-skroller="0:(top:70%);
25:(top:50%);
75:(top:45%);
100:(top:-50%;);">
This is R2-D2.
</div>
<div style="width:100%;position:fixed;" class="skrollSpecial"
data-skroller="100:(top:100%);
400:(top:0%;);
1000:(top:-10%);
1500:(top:-110%)">
<img class="sectBkgd" src="doge.jpeg" />
</div>
<div class="skrollSpecial sectTitle"
data-skroller="100:(top:100%);
500:(top:50%;);
1000:(top:50%;);
1500:(top:-120%;);">
This is doge.
</div>
<script>
skroller.init();
</script>
</body>
</html>