-
Notifications
You must be signed in to change notification settings - Fork 46
/
js_transitions.html
81 lines (67 loc) · 3.27 KB
/
js_transitions.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
---
layout: admin
title: Javascript - Transitions
section: js
module: js_transitions
header:
icon: transform
title: Transitions
description: We've made some custom animation functions that will transition your content. It's recommended to use this with our <a href="js_scrollfire.html">ScrollFire Plugin</a> to make your content transition in as you scroll.
stylesheets:
- css/pages/js_transitions.css
---
<section id="js_transitions">
<!-- ################# -->
<!-- showStaggeredList -->
<!-- ################# -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">showStaggeredList</h4>
<p>Use this to create a staggered reveal effect for any <code class="language-markup">UL</code> Tag with list items. Just make sure the list items in the <code class="language-markup">UL</code> are <code class="language-css">opacity: 0; to ensure the animation works correctly.</code></p>
<a href="#!" class="btn" onclick="Materialize.showStaggeredList('#staggered-test')">Click Me</a>
<pre>
<code class="language-markup">
<a href="#!" class="btn" onclick="Materialize.showStaggeredList('#staggered-test')">Click Me</a>
</code>
</pre>
<ul class="margin-top-35" id="staggered-test">
<li>
<h5>List Item</h5>
<p>This is a description</p>
</li>
<li>
<h5>List Item</h5>
<p>This is a description</p>
</li>
<li>
<h5>List Item</h5>
<p>This is a description</p>
</li>
<li>
<h5>List Item</h5>
<p>This is a description</p>
</li>
<li>
<h5>List Item</h5>
<p>This is a description</p>
</li>
</ul>
</div>
</div>
<!-- ########### -->
<!-- fadeInImage -->
<!-- ########### -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">fadeInImage</h4>
<p>Use this to fade in images. It also animates grayscale and brightness to give it a unique effect.</p>
<a href="#!" class="btn" onclick="Materialize.fadeInImage('#image-test')">Click Me</a>
<pre>
<code class="language-markup">
<a href="#!" class="btn" onclick="Materialize.fadeInImage('#image-test')">Click Me</a>
</code>
</pre>
<img class="margin-top-35" id="image-test" class="responsive-img" src="https://unsplash.imgix.net/reserve/nE6neNVdRPSIasnmePZe_IMG_1950.jpg?dpr=1.25&fit=crop&fm=jpg&h=700&q=75&w=1050">
</div>
</div>
</section>