Simple react component to implement a viewpager for use on web apps. Basically uses a horizontal scroll snap with a customizable configuration and a consistent cross browser behaviour.
- works in all modern browsers
- requestAnimationFrame for 60fps
- customizable configuration (including easing functions)
- no additional dependencies
Installation
npm i -s react-web-view-pager
Or
yarn add react-web-view-pager
Usage
<ViewPager = = = = ="8rem" = =/>
Props