forked from felippepuhle/aero-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
js_parallax.html
83 lines (68 loc) · 2.18 KB
/
js_parallax.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
---
layout: admin
title: Javascript - Parallax
section: js
module: js_parallax
header:
icon: flip_to_front
title: Parallax
description: 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.
---
<section id="js_parallax">
<!-- ############ -->
<!-- Introduction -->
<!-- ############ -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Introduction</h4>
<p>Check out the demo to get a better idea of it.</p>
<a href="http://materializecss.com/parallax-demo.html" target="_blank" class="btn-large waves-effect waves-light">Open Demo</a>
</div>
</div>
<!-- ####################### -->
<!-- Parallax HTML Structure -->
<!-- ####################### -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Parallax HTML Structure</h4>
<pre>
<code class="language-markup">
<div class="parallax-container">
<div class="parallax"><img src="img/parallax1.jpg"></div>
</div>
</code>
</pre>
</div>
</div>
<!-- ############## -->
<!-- Initialization -->
<!-- ############## -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Initialization</h4>
<pre>
<code class="language-javascript">
$(document).ready(function(){
$('.parallax').parallax();
});
</code>
</pre>
</div>
</div>
<!-- ###################### -->
<!-- Parallax Customization -->
<!-- ###################### -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Parallax Customization</h4>
<p>The parallax container height is what defines how much of the image can be seen. This is set to a default of 500px. You can add your own style to override this.</p>
<pre>
<code class="language-css">
.parallax-container {
height: "your height here";
}
</code>
</pre>
</div>
</div>
</section>