Remotion Rule: Sequencing
Remotion skill rule: Sequencing patterns for Remotion - delay, trim, limit duration of items. Part of the official Remotion Agent Skill for programmatic video in React.
What it is
The Remotion Sequencing rule is part of the official Remotion Agent Skill. It provides patterns for controlling when video elements appear, how long they last, and how they overlap in time. Sequencing is the core mechanism for composing multi-element video scenes in Remotion's React-based video framework.
This rule targets developers using Remotion to create programmatic videos who need to control timing precisely. It covers the Sequence component for delaying and trimming, the Series component for sequential playback, and patterns for overlapping elements.
How it saves time or tokens
The rule installs as part of the Remotion Agent Skill and activates automatically when you work on sequencing tasks. Instead of reading through Remotion documentation to figure out timing patterns, your AI assistant already knows the correct components and props for common scenarios.
How to use
- Install the Remotion Agent Skill:
npx skills add remotion-dev/skills
- The sequencing rule activates automatically when working with timing in a Remotion project.
- Use sequencing patterns in your compositions:
import { Sequence, Series, useCurrentFrame } from 'remotion';
export const MyVideo = () => {
return (
<>
{/* Delay an element by 30 frames */}
<Sequence from={30}>
<Title text="Hello" />
</Sequence>
{/* Limit duration to 60 frames */}
<Sequence from={0} durationInFrames={60}>
<Subtitle text="World" />
</Sequence>
</>
);
};
Example
import { Series, Sequence } from 'remotion';
export const VideoTimeline = () => {
return (
<Series>
{/* Each item plays after the previous one ends */}
<Series.Sequence durationInFrames={90}>
<IntroScene />
</Series.Sequence>
<Series.Sequence durationInFrames={150}>
<MainContent />
</Series.Sequence>
{/* Overlap with previous by 15 frames */}
<Series.Sequence durationInFrames={60} offset={-15}>
<OutroScene />
</Series.Sequence>
</Series>
);
};
Related on TokRepo
- Video tools -- Video creation and editing tools for developers
- AI coding tools -- Developer productivity tools
Common pitfalls
- Forgetting that Sequence's from prop is relative to the parent composition's timeline, not the global timeline. Nested Sequences offset from their parent's start.
- Using negative offset in Series without checking that the overlap does not cause elements to render before their content is ready.
- Setting durationInFrames shorter than the content's animation duration cuts it off abruptly. Match duration to your animation timing.
Frequently Asked Questions
Sequence places a single element at a specific time with optional duration. Series places multiple elements in sequential order, where each starts after the previous one ends. Series handles timing automatically; Sequence requires manual from and durationInFrames.
Use the offset prop on Series.Sequence with a negative value. For example, offset={-15} makes an element start 15 frames before the previous one ends, creating a crossfade opportunity.
Yes. Nested Sequences offset their from value relative to the parent Sequence. This lets you create complex timing hierarchies where groups of elements are delayed together.
Use Sequence with a negative from value. For example, from={-30} trims the first 30 frames of the child component. The child still receives frame numbers starting from 30.
The skill provides your AI coding assistant with pre-loaded knowledge of Remotion sequencing patterns, component APIs, and best practices. It activates automatically when the assistant detects you are working on video timing tasks.
Citations (3)
- Remotion Sequence Docs— Remotion Sequence and Series components for video timing
- Remotion Series Docs— Series component for sequential playback with offset
- Remotion GitHub— Remotion Agent Skill for AI-assisted video development
Related on TokRepo
Source & Thanks
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
sequencing
Part of the Remotion AI Skill collection on TokRepo.
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.