0.0.2 • Published 5 years ago

@fiveem/react-crossfade-slider v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Crossfade Slider

npm (scoped)

Screenshots

React Crossfade Slider

Install

npm i @fiveem/react-crossfade-slider

Usage

import Slider from '@fiveem/react-crossfade-slider'

<Slider images={this.state.images} period={2000} animationDuration={1000} containerStyle={this.state.containerStyle} imageStyle={this.state.imageStyle} />

API

nametypesample valuedescription
imagesArray['url_image1', 'url_image2', 'url_image3']Images that will be displayed inside the slider
periodNumber2000Duration of auto play (should be specified in miliseconds)
animationDurationNumber1000Duration of slide animation/transition (should be specified in miliseconds)`
containerStyleObjectStyle that will be applied on the container (slider)
imageStyleObjectStyle that will be applied on the image (slide)

License

react-crossfade-slider is released under the MIT license.

0.0.2

5 years ago

0.0.1

5 years ago