Text scenes
Animated Captions — editable Remotion component
Frame-synchronized captions using Remotion caption objects with karaoke, boxed, and minimal word-highlighting presets.
Component details
- Version
- 0.2.0
- License
- MIT
- Duration
- 3.0 seconds
- Dimensions
- 1080 × 1920
Prerequisite: Create a Remotion project
Agent Motion installs components into an existing Remotion project. If you are starting fresh, create the standard project structure first:
npx @agent-motion/cli create remotion my-remotion-video
Add editable source
Run this command from the root of your Remotion project. No separate Agent Motion CLI installation is required.
npx @agent-motion/cli add animated-captions@0.2.0
Agent guidance
- Pass standard Remotion Caption objects in chronological order and preserve leading spaces when importing tokenized transcript data.
- Presets are reproducible bundles of public props: use karaoke for social video, boxed for strong contrast over footage, and minimal for restrained editorial work.
- Import calculateAnimatedCaptionsDuration to derive the scene duration from the last caption end time.
- Keep three to six short words visible at once and choose textColor for sufficient contrast with the underlying footage.
- Use background, active-token, font-weight, shadow, scale, and spacing props to recreate or override any preset treatment.
- Animated Captions is a transparent overlay and should be layered above the associated video or visual scene.