sequencing — Claude Code rule: timing for Remotion
sequencing — a rule for managing component timing in Remotion videos. Uses Sequence for delays and Series for sequential playback, with support for nested and overlapping scenes.
no license ★ 849 updated 2026-01-24
.claude/rules/sequencing.mdWhat sequencing does
The rule covers timing patterns in Remotion. Sequence delays an element's appearance using from and durationInFrames, while premountFor preloads the component before playback. Series plays elements sequentially without overlap but can be configured for overlapping scenes via negative offset values.
Inside Sequence, useCurrentFrame() returns a local frame starting from zero, simplifying animation calculations. The rule includes examples of nested sequences for complex timing and embedding compositions through width and height parameters. All elements wrap in AbsoluteFill by default; set layout="none" to disable wrapping.
What it helps with
- delay an element's appearance on the video timeline
- play scenes sequentially without gaps
- create overlapping transitions between elements
- manage local frame timing in nested components
- embed one composition inside another with size control
Example prompts for the agent
- Wrap your title in
Sequencewithfrom={1 * fps}anddurationInFrames={2 * fps} - Use
Seriesfor intro, main, and outro segments with durations of 45, 60, and 30 frames - Add overlap between scenes using
offset={-15}on the secondSeries.Sequence
How to install sequencing
Manually: put the files in place
.claude/rules/sequencing.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/sequencing.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/sequencing.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/sequencing.mdManually: put the files in place
.clinerules/sequencing.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about sequencing
How do I install the sequencing rule in Claude Code?
Copy the rule file to .claude/rules/sequencing.md in your project root. Claude Code automatically loads all files from .claude/rules on the next run.
What does the sequencing rule do?
It provides patterns for controlling component timing in Remotion videos: delays, sequential playback, scene overlaps, and nested frame management.
Should I always use premountFor with Sequence?
Yes, the rule recommends always adding premountFor to preload the component on the timeline before playback begins.