0.0.5 • Published 5 years ago
scroll-my v0.0.5
scroll-my
Example
import scrollMy from 'scroll-my'
Vue.use(scrollMy)需要给父容器一个height和:data='Array'和overfolw:hidden;左右滚动需要给ul容器一个初始化 css width。
myTimeline
| 属性 | 类型 | 默认 | 描述 | | 
|---|---|---|---|
| direction | 0 down、 1 up 、 2 left 、 3 right | 1 | 0 下 1上 2左 3 右 | 
| step | number | 1 | 越大越快 | 
| autoPlay | Boolean | true | 自动切换 | 
| limitMoveNum | Number | 5 | 超出多少数据开始滚 |