rc-bullets 是一个基于 CSS3 Animation,使用 React 构建的可扩展、高性能弹幕组件。
<StyledBullet/>
const screen = new BulletScreen(<queryString>|<HTMLElement>,[<option>])
option
const bulletId = screen.push(<string>|<ReactElement>,[<option>])
option:
screen.clear([<bulletId>])
screen.pause([<bulletId>])
screen.resume([<bulletId>])
screen.hide([<bulletId>])
screen.show([<bulletId>])
<StyledBullet msg="<弹幕内容>" head="<头像地址>" color="<字体颜色>" backgroundColor="<背景色>" size="<尺寸:small|normal|large|huge|自定义大小,基于em机制,默认normal>