0.1.3 • Published 7 years ago

animakit-slider v0.1.3

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

AnimakitSlider

React component for the blocks sliding. Supports both horizontal and vertical modes and the ability to loop and skip slides during animation.

Usage

<AnimakitSlider slide={this.state.index}>
  <Slide />
  <Slide />
  <Slide />
</AnimakitSlider>

Demo

Installation

npm install animakit-slider

Properties

PropertyRequiredTypeDefault ValueAvailable ValuesDescription
slidetruestringKey of the first childKey of the component childCurrent visible slide, that contains a child with the corresponding key
verticalfalseboolfalsetrue, falseDirection of animation
loopfalseboolfalsetrue, falseIf true, the component will choose the shortest way between the slides. (For example, it will animate directly from the last slide to first)
skipfalseboolfalsetrue, falseIf true, the component will animate directly to the selected slide and will not show the slides located between
flexiblefalseboolfalsetrue, falseIf true, the component size automatically to fit the current slide. By default, the component selects the size of the largest slide.
durationfalsenumber500Any integer numberDuration of animation
easingfalsestringcubic-bezier (.165,.84,.44,1)Any easing functionEasing function of animation

Origin

AnimakitSlider is the part of Animakit. See https://animakit.github.io for more details.

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago