0.2.0 • Published 4 years ago

@yaosc/barrage v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Description(描述)

自定义弹幕,支持设置高度,显示行数,弹幕滑动速度

Installation(安装)

$ npm install @yaosc/barrage

Props(传参)

1. speed

滑动速度,支持‘normal’,‘slow’,‘fast’,默认‘normal’

2. barrage

弹幕文案,数据类型为数组

3. height

弹幕容器该高度,默认110像素

4. lineNumber

弹幕显示行数,默认3行

5. customStyle

自定义样式