@gluedigital/scroll-carousel

1.2.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @gluedigital/scroll-carousel

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

18.4 kB

Total Files

5

Last publish

Collaborators

  • linuxgunter
  • landesag
  • csar
  • mancontr
  • alex_bf
  • javibt