-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathparallax-demo.html
164 lines (156 loc) · 6.25 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="description" content="" />
<title> - Materialize</title>
<!-- Favicons-->
<link
rel="apple-touch-icon-precomposed"
href="images/favicon/apple-touch-icon-152x152.png"
/>
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta
name="msapplication-TileImage"
content="images/favicon/mstile-144x144.png"
/>
<link rel="icon" href="images/favicon/favicon-32x32.png" sizes="32x32" />
<!-- Android 5 Chrome Color-->
<!--<meta name="theme-color" content="#EE6E73" />-->
<style>
@import url("https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i");
</style>
<!-- CSS-->
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
rel="stylesheet"
/>
<script>
const theme = localStorage.getItem("theme");
if (theme) document.documentElement.setAttribute("theme", theme);
</script>
<script type="module" crossorigin src="/assets/main-7444f380.js"></script>
<link rel="stylesheet" href="/assets/main-0dd28cd6.css">
</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 class="page-footer">
<div class="container">
<div class="row">
<div class="s12 m10 offset-m1">
<div class="row" style="gap: 2rem">
<div class="s12 m6 l4">
<h5>Help Materialize Grow</h5>
<p>
We hope you have enjoyed using <a href="https://materializeweb.com">Materialize</a> and if you feel like it has helped you out and want to support the team you can
help us by opening issues or contributing on GitHub.
</p>
<a tabindex="0" class="btn tonal btn-small waves-effect waves-light" target="_blank" href="https://github.com/materializecss/materialize">Contribute</a>
</div>
<div class="s12 m6 l4">
<h5>Join the Discussion</h5>
<p>
We have a Gitter chat room set up where you can talk directly with us. Come in and discuss new features, future goals, general problems or questions, or anything else
you can think of.
</p>
<a tabindex="0" class="btn tonal btn-small waves-effect waves-light" href="https://gitter.im/materializecss/materialize" target="_blank">Chat</a>
</div>
<div class="s12 m6 l4" style="overflow: hidden">
<h5>Star us</h5>
<div>
<a href="https://github.com/materializecss/materialize" target="_blank">
<img style="width: 42%" alt="GitHub Repo stars" src="https://img.shields.io/github/stars/materializecss/materialize" />
</a>
</div>
<!-- Ad Placements -->
<div style="width: 100%; background-color: #f883">
<div style="height: 90px; width: 100%">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9412332535613378" crossorigin="anonymous"></script>
<ins
class="adsbygoogle"
style="display: block"
data-ad-format="fluid"
data-ad-layout-key="-fb+5w+4e-db+86"
data-ad-client="ca-pub-9412332535613378"
data-ad-slot="4127762940"
></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
</div>
<div class="footer-copyright">
© 2014-
<noscript>2018</noscript>
<script>
document.write(new Date().getFullYear());
</script>
Materialize, All rights reserved.<a class="right" target="_blank" href="https://github.com/materializecss/materialize/blob/main/LICENSE">MIT License</a>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>