-
Notifications
You must be signed in to change notification settings - Fork 54
/
index.html
executable file
·57 lines (49 loc) · 1.99 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>React Animate Height</title>
<link rel="stylesheet" href="https://muffinman.io/skyblue/css/skyblue.css">
<!-- Icons -->
<link href="https://muffinman.io/favicon/red/icon-32.ico" rel="icon" sizes="any" />
<link href="https://muffinman.io/favicon/red/icon.svg" rel="icon" type="image/svg+xml" />
<link href="https://muffinman.io/favicon/red/icon-180.png" rel="apple-touch-icon" />
<link href="https://muffinman.io/favicon/red/manifest.webmanifest" rel="manifest" />
</head>
<body>
<div class='header'>
<div class='content'>
<a href='https://muffinman.io' class='margin-right-20'>My blog</a>
<a href='https://github.com/Stanko/react-animate-height' class='margin-right-20'>GitHub</a>
<a href='https://www.npmjs.com/package/react-animate-height'>npm</a>
</div>
</div>
<div class="content">
<h1>React Animate Height</h1>
<p>
Lightweight React component for animating height using CSS transitions.
Slide up/down the element, and to any specific height.
Check the <a href="#demo">demo</a> lower on this page.
</p>
<p>CSS classes are applied in specific animation states, check <code>animationStateClasses</code> prop.</p>
<p>
Detailed documentation is available on
<a href='https://github.com/Stanko/react-animate-height'>GitHub</a>.
</p>
<h3>Usage</h3>
<p>Import the component, and use it to wrap content whose height you want to animate.</p>
<pre>
import AnimateHeight from 'react-animate-height';
<AnimateHeight
duration={ 500 }
height={ 'auto' }
>
<h1>Your content goes here</h1>
<p>Put as many React or HTML components here.</p>
</AnimateHeight>
</pre>
</div>
<div id="demo" class="content"></div>
</body>
</html>