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.
Agent 可直接安装
这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。
npx -y tokrepo@latest install fda3b2ce-7591-4a64-aed6-4e6d8d93d4d0 --target codex先 dry-run 确认安装计划,再运行此命令。
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.
常见问题
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.
引用来源 (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
来源与感谢
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
sequencing
Part of the Remotion AI Skill collection on TokRepo.
讨论
相关资产
Remotion Rule: Text Animations
Remotion skill rule: Typography and text animation patterns for Remotion.. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Get Video Duration
Remotion skill rule: Getting the duration of a video file in seconds with Mediabunny. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Trimming
Remotion skill rule: Trimming patterns for Remotion - cut the beginning or end of animations. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Get Audio Duration
Remotion skill rule: Getting the duration of an audio file in seconds with Mediabunny. Part of the official Remotion Agent Skill for programmatic video in React.