@gluedigital/scroll-carousel
v1.2.0
Published
A library for scroll-driven vertical carousels
Downloads
19
Keywords
Readme
scroll-carousel
A library for scroll-driven vertical carousels.
Usage
To install it:
npm install --save @gluedigital/scroll-carousel
To use it:
import ScrollCarousel from '@gluedigital/scroll-carousel'
import '@gluedigital/scroll-carousel/css/index.css'
// ...
<ScrollCarousel>
<div>First slide</div>
<div>Second slide</div>
<div>Last slide</div>
</ScrollCarousel>
Options
The following props can be used:
| Name | Type | Description | |------|------|-------------| | className | string | Base classname to use. Status classes will be added to it. | | timeout | number | How long should the leaving slide stay on the DOM, in ms. |
Developing
This package uses nwb for the build. Take a look at their documentation for more info.
TL;DR: after installing nwb, just do npm start
to open the dev environment.