1.0.0 • Published 4 years ago
react-auto-scrollview v1.0.0
react-auto-scrollview
基于react的自动滚动组件
Features
- 📦 使用极其简单
- 🎉 动画效率比较高(硬件加速)
Getting Started
# Install deps
$ yarn add react-auto-scrollview
使用
import AutoScrollView from "react-auto-scrollview";
<AutoScrollView height={80}>
<div>11111</div>
<div>22222</div>
<div>33333</div>
<div>44444</div>
<div>55555</div>
<div>66666</div>
<div>77777</div>
<div>88888</div>
<div>99999</div>
</AutoScrollView>
参数
参数名 | Required | defalutValue |
---|---|---|
height | true | undefine |
speed | false | 4 |
fps | false | 30 |
1.0.0
4 years ago