-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
parallax-demo.html
63 lines (63 loc) · 1.87 KB
/
parallax-demo.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
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<style>
.parallax-demo header,
.parallax-demo main,
.parallax-demo footer {
padding-left: 0;
}
.parallax-container .text-center {
position: absolute;
top: 50%;
left: 0;
right: 0;
margin-top: -27px;
}
body.parallax-demo footer {
margin-top: 0;
}
</style>
<body class="parallax-demo">
<main>
<!-- Parallax Section -->
<div class="parallax-container">
<div class="parallax"><img src="images/parallax1.jpg" /></div>
</div>
<div class="section">
<div class="row container">
<div class="col s12 m10 offset-m1">
<h2 class="header">Parallax</h2>
<p class="grey-text text-darken-3 lighten-3">
Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.
</p>
<h4 class="light">Parallax Demo HTML</h4>
<pre><code class="language-html">
<xmp>
<div class="parallax-container">
<div class="parallax"><img src="images/parallax1.jpg"></div>
</div>
<div class="section">
<div class="row container">
<h2 class="header">Parallax</h2>
<p class="grey-text text-darken-3 lighten-3">Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.</p>
</div>
</div>
<div class="parallax-container">
<div class="parallax"><img src="images/parallax2.jpg"></div>
</div>
</xmp>
</code></pre>
</div>
</div>
</div>
<div class="parallax-container">
<div class="parallax"><img src="images/parallax2.jpg" /></div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>