react-horizontal-scrolling
v0.1.13
Published
react horizontal scroll component
Downloads
1,787
Readme
react-horizontal-scrolling
Installation
npm install react-horizontal-scrolling
Features
- Support horizontal dragging
- Support vertical mouse wheel
- Tween animation (mainly copied from malihu-custom-scrollbar-plugin)
Usage
import HorizontalScroll from 'react-horizontal-scrolling'
<HorizontalScroll>
{pictures.map((pic, idx) => (
<img
className="rounded w-56 h-64 object-cover"
src={pic}
key={idx} />
))}
</HorizontalScroll>
License
MIT