- npm install --save react-scroll-plugin
- Place download react-scroll-plugin open
demo/index.html
. Example and demo are one on one.
import Scroll from 'react-scroll-plugin'
import 'react-scroll-plugin/scroll.css'
<div style={{width: '500px',height: '500px'}}>
<Scroll>
<ul>
<li>1</li>
.
.
.
</ul>
</Scroll>
</div>