RepositoryJavaScript
zerosoul

zerosoul/rc-bullets

🌈基于CSS3 Animation,使用React构建的弹幕组件

595stars
67forks
12issues
2views

🎯 React Bullet‑Screen Component

Bring lively danmu overlays to your React apps with pure CSS3 animations.

rc-bullets is an open‑source React component by zerosoul that adds bullet‑screen (danmu) overlays to web pages using CSS3 animations. It provides a simple API for pushing messages, managing tracks, and controlling playback, making it suitable for live‑streaming or video comment sections. The library is no longer actively maintained, and the author recommends the TypeScript version for new projects.

✨ Highlights

  • React component based on CSS3 Animation: Provides a <BulletScreen> element that handles all motion with CSS, ensuring high performance.
  • Flexible message input: Accepts plain strings, React elements, or the included <StyledBullet> component for custom avatars and styling.
  • Screen management: Offers clear, pause, resume, hide, and show methods to control the entire screen or individual bullets.
  • Animation parameterization: Supports custom duration, delay, timing functions, direction, loop count, and track height via options.
  • Interaction hooks: onStart and onEnd callbacks let you trigger side effects when a bullet appears or finishes.
  • Mouse hover pause: By default, hovering over the screen pauses all bullets, improving readability.

💡 Why it matters

rc-bullets stands out because it combines the simplicity of a React component with the power of CSS3 animations, avoiding heavy JavaScript timers and delivering smooth 60 fps motion. Its per‑bullet options and callbacks make it easy to integrate with existing UIs, while the built‑in <StyledBullet> component lets you quickly create consistent, branded messages. The library is especially useful for live‑streaming platforms, video comment sections, or any interactive experience where real‑time overlay text adds engagement.


#React #Danmu #CSS3 #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
drawcall/AgileJS

AgileJS - The Css3 Creation Engine 🍖🌭🍔

492
Nov 18, 2021
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryObjective-C
iOS-Strikers/OCBarrage

iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!

618
Nov 14, 2026
RepositoryTypeScript
Crawler995/DouyuBarrage-Pro

(2020年最新)斗鱼弹幕抓取及可视化管理平台第二版,提供弹幕抓取、弹幕实时发送速度可视化、抓取记录查询、弹幕下载、自定义关键词统计、铁粉统计、高光时刻自动捕获、高频弹幕词云等功能,起飞~~~

164
Jan 5, 2023
RepositoryObjective-C
Grayon/Douyu-for-Mac

非官方Mac版斗鱼播放器带实时弹幕

151
Jun 18, 2019
RepositoryGo
BarryWangQwQ/UniBarrage

高性能开源弹幕代理与转发器 | 支持抖音、哔哩哔哩、快手、斗鱼、虎牙等主流平台,统一弹幕数据格式,实时转发毫秒延迟,0% 消息丢失,超小体积!🔥 开发者的跨平台互动神器!

108
Dec 8, 2024
RepositoryTypeScript
hugeorange/BulletJs

👨‍💻‍一个原生js弹幕库

97
Feb 28, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026