zerosoul/rc-bullets
🌈基于CSS3 Animation,使用React构建的弹幕组件
🎯 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, andshowmethods 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:
onStartandonEndcallbacks 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.
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!
(2020年最新)斗鱼弹幕抓取及可视化管理平台第二版,提供弹幕抓取、弹幕实时发送速度可视化、抓取记录查询、弹幕下载、自定义关键词统计、铁粉统计、高光时刻自动捕获、高频弹幕词云等功能,起飞~~~
高性能开源弹幕代理与转发器 | 支持抖音、哔哩哔哩、快手、斗鱼、虎牙等主流平台,统一弹幕数据格式,实时转发毫秒延迟,0% 消息丢失,超小体积!🔥 开发者的跨平台互动神器!
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
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...