Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/sequencing.md
Open on GitHub

What 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 Sequence with from={1 * fps} and durationInFrames={2 * fps}
  • Use Series for intro, main, and outro segments with durations of 45, 60, and 30 frames
  • Add overlap between scenes using offset={-15} on the second Series.Sequence

How to install sequencing

Manually: put the files in place

.claude/rules/sequencing.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set33

The whole set →
lottie This rule covers loading and displaying Lottie animations in Remotion. Use it when a rendered video needs a Lottie asset. CX Codex +1 ★ 849repo stars import-srt-captions import-srt-captions — a Claude Code rule for importing .srt subtitle files into Remotion video projects. Uses parseSrt() from @remotion/captions to extract subtitles and integrate them into components. CX Codex +1 ★ 849repo stars 3d 3d enforces proper Three.js and React Three Fiber conventions for deterministic video rendering in Remotion. CX Codex +1 ★ 849repo stars parameters Explains how to add video parameterization using Zod schemas in Remotion compositions. Lets users edit parameters visually in the sidebar instead of hardcoding them. CX Codex +1 ★ 849repo stars images images directs the AI to embed graphics in Remotion via the Img element, staticFile helper, and dimensions calculation. CX Codex +1 ★ 849repo stars calculate-metadata The calculate-metadata rule configures Remotion composition metadata before rendering, including duration, dimensions, FPS, props, and the output filename. CX Codex +1 ★ 849repo stars measuring-text measuring-text — a rule to calculate text size, fit fonts to containers, and detect overflow. Use it when building dynamic text in Remotion and need precise dimensions to avoid clipping or wrong scaling. CX Codex +1 ★ 849repo stars fonts Guides Claude Code on loading Google Fonts and local font assets in Remotion video projects without render glitches. CX Codex +1 ★ 849repo stars

Project sponsors

Companies that keep this analytics open