zhongs / react-marquee

react无缝滚动组件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo

Usage

安装

npm install --save react-marquee-order

Examples

一个栗子

Api

参数 说明 类型 默认值
loopData 滚动的数据 Array
getMarquee 可以从参数中获取stop,run函数控制marque的运动和暂停 function
direction 滚动方向 ('landscape' , 'vertical') String 'landscape'
verticalItemHeight 垂直滚动item的高度 String '60px'

About

react无缝滚动组件


Languages

Language:JavaScript 84.0%Language:CSS 16.0%