Text
SubtitleBurn
Hardcoded Netflix-style subtitle burn-in with hard cuts between lines.
Installation
npm install @ai-animate/core
Usage
import { SubtitleBurn } from '@ai-animate/core'
<SubtitleBurn lines={['In a world driven by data...', 'One framework changed everything.']} />
Props
linesstring[]['In a world driven by data...', 'One framework changed everything.', 'agents-ui']Lines to display in sequence
lineDurationnumber2200How long each line shows in ms
loopbooleantrueWhether to loop
fontSizestringclamp(1.1rem, 2.2vw, 1.8rem)Font size
colorstring#ffffffText color
strokeColorstring#000000Stroke/outline color for readability
onCycleComplete() => voidundefinedCalled when cycle completes