Skills2026年3月29日·1 分钟阅读

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 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Remotion Rule: Sequencing
直接安装命令
npx -y tokrepo@latest install fda3b2ce-7591-4a64-aed6-4e6d8d93d4d0 --target codex

先 dry-run 确认安装计划,再运行此命令。

TL;DR
Remotion sequencing patterns handle delay, trim, and duration limits for composing video scenes in React code.
§01

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.

§02

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.

§03

How to use

  1. Install the Remotion Agent Skill:
npx skills add remotion-dev/skills
  1. The sequencing rule activates automatically when working with timing in a Remotion project.
  1. 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>
    </>
  );
};
§04

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>
  );
};
§05

Related on TokRepo

§06

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.

常见问题

What is the difference between Sequence and Series?+

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.

How do I make elements overlap in time?+

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.

Can I nest Sequences inside each other?+

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.

How do I trim the beginning of a clip?+

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.

How does the Remotion Agent Skill help with sequencing?+

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)
🙏

来源与感谢

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: sequencing

Part of the Remotion AI Skill collection on TokRepo.

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产