transitions — Claude Code rule for Remotion transitions
This rule guides Claude Code in adding fullscreen transitions between Remotion scenes or clips. Use it when building a composition from multiple scenes.
no license ★ 849 updated 2026-01-24
.claude/rules/transitions.mdWhat transitions does
The rule covers TransitionSeries, where scenes run in sequences with transitions between them. It describes fade, slide, wipe, flip, and clock-wipe effects, plus directional slides and linear or spring-based timing.
The @remotion/transitions package is required. TransitionSeries absolutely positions its children, so check how the scenes sit in your composition. Adjacent scenes overlap during a transition, which makes the full composition shorter than the sum of scene durations; subtract each transition's duration when calculating the total.
What it helps with
- add a fade between Remotion scenes
- set the direction of a scene-change slide
- calculate composition length with overlapping transitions
- choose linear or spring timing
Example prompts for the agent
- Add a fade between the
IntroandMainscenes in my Remotion composition. - Set the transition between these scenes to slide in from the left.
- Calculate the full composition duration, accounting for each transition.
How to install transitions
Manually: put the files in place
.claude/rules/transitions.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/transitions.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/transitions.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/transitions.mdManually: put the files in place
.clinerules/transitions.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about transitions
How do I install transitions in Claude Code?
Add the rule file to your project at .claude/rules/transitions.md.
What does transitions do?
It guides scene and clip transitions in Remotion using TransitionSeries, with transition types and timing options.
How do transitions affect a Remotion composition's duration?
Adjacent scenes overlap while a transition plays, so subtract each transition's duration from the sum of the scene durations.