-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
css-transitions.html
61 lines (60 loc) · 2.38 KB
/
css-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
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<div id="scale" class="section scrollspy">
<p class="caption">
We've made some custom animation classes that will transition your content with only CSS. Each CSS transition consists of a base class that applies the necessary
styles and additional classes that control the state of the transition.
</p>
<h5>Scale</h5>
<p>
Use this scale in and out elements. Make sure to add the base transition class
<code class="language-html">scale-transition</code>. Then add the class <code class="language-html">scale-out</code> to scale the element down until it is hidden.
To start something as hidden, add the class <code class="language-html">scale-out</code> first, and then add the class
<code class="language-html">scale-in</code> to scale the element up until it is shown.
</p>
<a id="scale-demo" href="#!" class="btn-floating btn-large scale-transition"><i class="material-icons">add</i></a>
<a id="scale-demo-trigger" href="#!" class="btn right">Toggle Scale</a>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html copiedText">
<xmp>
<!-- Scaled in -->
<a id="scale-demo" href="#!" class="btn-floating btn-large scale-transition">
<i class="material-icons">add</i>
</a>
<!-- Scaled out -->
<a id="scale-demo" href="#!" class="btn-floating btn-large scale-transition scale-out">
<i class="material-icons">add</i>
</a>
</xmp>
</code>
</pre>
</div>
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#scale">Scale</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>