react-scroll-slider
Version:
React slider component triggered by scrolling
26 lines (20 loc) • 861 B
Markdown
# react-scroll-slider
React-scroll-slider is a component that triggers slides replacing by scroll event. Active slide indexes are provided by context provider and passed to active alaments that can be animated with css transitions. Each slide can have different number of active elements thus it's possible to add multiple animated elements with different animations.
It's possible to add forward/backward animations depending on if slide is going to be rendered or going to be hidden.
Demo is [here][demo]
### Roadmap
- Add examples of usage with code samples
- Storybook for showcases
- Support for swipe events
- Implement hosizontal slide scrolling
- Tests
[demo]: <https://stupefied-visvesvaraya-c4e00a.netlify.com/>
### Installation
To install package
```sh
npm i --save react-scroll-slider
```
or
```sh
yarn add react-scroll-slider
```