text-animations — Claude Code rule: text animation patterns for Remotion
text-animations — a rule with text animation patterns for Remotion: typewriter effect and word highlighting. Used for videos with dynamic typography.
no license ★ 849 updated 2026-01-24
.claude/rules/text-animations.mdWhat text-animations does
The rule provides two core animation patterns built on useCurrentFrame(). For a typewriter effect, slice the string character by character to reveal text smoothly, one symbol at a time. The second pattern highlights words like a marker pen. Both patterns include example implementations: typewriter with a blinking cursor and pause after the first sentence, plus word highlight animation during playback.
What it helps with
- animate text appearing character by character in video
- build typewriter effect with cursor for Remotion
- highlight words during video playback
- sync typography timing with video frames
Example prompts for the agent
- Add text-animations rule to implement typewriter effect in your Remotion video
- Use word highlight pattern to emphasize key phrases in a presentation
- Apply typewriter with pause for better text readability
How to install text-animations
Manually: put the files in place
.claude/rules/text-animations.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/text-animations.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/text-animations.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/text-animations.mdManually: put the files in place
.clinerules/text-animations.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about text-animations
How do I install text-animations in Claude Code?
Place the rule file at .claude/rules/text-animations.md in your project root. Claude Code will load it automatically in the next session.
What does the text-animations rule do?
Provides ready-to-use patterns for two animation styles in Remotion: typewriter effect and word highlighting with a pen-like marker.
Why use string slicing for typewriter instead of opacity changes?
String slicing creates smooth character-by-character animation, while opacity changes per character produce jittery results and make speed control harder.