Remotion Rule: Transitions
Remotion skill rule: Scene transitions and overlays for Remotion using TransitionSeries.. Part of the official Remotion Agent Skill for programmatic video in React.
What it is
This is a Remotion skill rule that covers scene transitions and overlays for programmatic video production. Remotion lets you create videos using React components, and this rule teaches the TransitionSeries API for building smooth transitions between scenes: fade, slide, wipe, and custom easing curves. It is a configuration file that guides AI coding agents in producing correct transition code.
Video producers and developers using Remotion for programmatic video creation benefit most. Instead of manually keyframing transitions in a video editor, this rule enables declarative transition definitions in React code.
How it saves time or tokens
Transitions are repetitive to implement from scratch. The TransitionSeries API abstracts the timing, easing, and composition logic into a clean declarative syntax. This rule provides the patterns and examples so an AI coding agent produces correct transition code on the first attempt, avoiding trial-and-error with the Remotion API. Common transitions (fade in/out, slide left/right, crossfade) are covered with ready-to-use code.
How to use
- Add the Remotion transitions rule to your project's AI configuration.
- Install the Remotion transitions package:
npm install @remotion/transitions
- Use TransitionSeries in your composition:
import { TransitionSeries, linearTiming } from '@remotion/transitions';
import { fade } from '@remotion/transitions/fade';
import { slide } from '@remotion/transitions/slide';
export const MyVideo: React.FC = () => {
return (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={90}>
<SceneOne />
</TransitionSeries.Sequence>
<TransitionSeries.Transition
presentation={fade()}
timing={linearTiming({ durationInFrames: 30 })}
/>
<TransitionSeries.Sequence durationInFrames={90}>
<SceneTwo />
</TransitionSeries.Sequence>
</TransitionSeries>
);
};
Example
import { springTiming } from '@remotion/transitions';
import { wipe } from '@remotion/transitions/wipe';
import { slide } from '@remotion/transitions/slide';
// Slide transition with spring easing
<TransitionSeries.Transition
presentation={slide({ direction: 'from-left' })}
timing={springTiming({ config: { damping: 200 }, durationInFrames: 30 })}
/>
// Wipe transition
<TransitionSeries.Transition
presentation={wipe({ direction: 'from-top-left' })}
timing={linearTiming({ durationInFrames: 20 })}
/>
// Custom overlay transition
<TransitionSeries.Transition
presentation={fade()}
timing={linearTiming({ durationInFrames: 15 })}
/>
Related on TokRepo
- AI Coding Tools -- Developer tools for programmatic content creation
- Video Tools -- Video production and editing tools
Common pitfalls
- Transition duration must not exceed the adjacent scene durations. If a 30-frame transition sits between two 20-frame scenes, the render will fail.
- TransitionSeries replaces the standard Series component for scenes that need transitions. Do not mix them in the same composition.
- Spring timing with low damping values creates bouncy transitions that may look unprofessional. Use linearTiming for clean, predictable transitions unless bounce is intentional.
Frequently Asked Questions
Remotion includes built-in presentations for fade, slide, wipe, flip, and clock wipe. Each accepts configuration options for direction, easing, and duration. You can also create custom presentation components.
Yes. Use TransitionSeries with multiple Transition elements between Sequence elements. Each transition can use a different presentation type (fade between scene 1-2, slide between scene 2-3, etc.).
Yes. TransitionSeries renders identically in the Remotion Player (browser preview) and during final video rendering. You can preview transitions in real time during development.
Yes. Remotion allows custom presentation components that receive a progress value (0 to 1) and render the transition effect. This enables any visual effect expressible in React/CSS as a scene transition.
linearTiming produces constant-speed transitions. springTiming uses physics-based easing that starts fast and decelerates, producing more natural motion. Spring timing accepts config options for damping, stiffness, and mass.
Citations (3)
- Remotion Transitions Documentation— Remotion TransitionSeries API for scene transitions
- Remotion GitHub Repository— Built-in transition presentations: fade, slide, wipe
- Remotion Official Website— React-based programmatic video creation
Related on TokRepo
Source & Thanks
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
transitions
Part of the Remotion AI Skill collection on TokRepo.