2.1.4 • Published 7 years ago

animakit-expander v2.1.4

Weekly downloads
360
License
MIT
Repository
github
Last release
7 years ago

AnimakitExpander

React component for the expanding and collapsing of the blocks. Supports both vertical and horizontal mode.

Usage

<Title onClick={toggle} />
<AnimakitExpander expanded={this.state.expanded}>
  <Text />
</AnimakitExpander>

Demo

Installation

npm install animakit-expander

Properties

PropertyRequiredTypeDefault ValueAvailable ValuesDescription
expandedtrueboolfalsetrue, falseState of the component: expanded or collapsed
horizontalfalseboolfalsetrue, falseIf true, component will expand in horizontal direction
alignfalsestringtop, bottom for the default direction or left, right for the horizontal directionAlign of the content during the animation
durationfalsenumber500Any integer numberDuration of animation
durationPerPxfalsenumber0Any integer numberDuration of animation per pixel. Use it if you want the duration depended on the size and calculated dynamically.
easingfalsestringease-outAny easing functionEasing function of animation

Origin

Part of Animakit. See https://animakit.github.io for more details.

2.1.4

7 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

2.0.0-beta.3

9 years ago

2.0.0-beta.2

9 years ago

2.0.0-beta.1

9 years ago

2.0.0-beta

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago