返回 Skill 列表
extension
分类: 开发与工程无需 API Key

remotion-transitions

当用户要求创建自定义的Remotion转场效果,询问关于“酷炫转场”、“电影级转场”、“条纹转场”、“故障转场”、“自定义TransitionPresentation”,或者想要在Remotion中构建超出内置库的场景间转场时,应使用此技能。同样适用于“如何在Remotion中制作转场”、“自定义转场”、“高能量转场”、“能量转场”、“品牌化转场”。

person作者: jakexiaohubgithub

Remotion Custom Transitions

This skill teaches you how to build production-grade, high-energy custom transitions in Remotion using the TransitionPresentation API — the same pattern used in Fyltr's Instagram Reel campaign.

Quick Reference

  • Custom Transition Pattern — The TransitionPresentation API, the exact component shape, and how timing works
  • Transition Catalog — 6 battle-tested transitions with full source: Striped Slam, Zoom Punch, Diagonal Reveal, Emerald Burst, Vertical Shutter, Glitch Slam
  • Animation Math — Easing functions, stagger formulas, spring configs, and the clamp extrapolation pattern used throughout

Core Concept

Remotion's @remotion/transitions package exposes a TransitionPresentation type. You implement a component that receives:

  • presentationProgress0 at transition start → 1 at transition end
  • presentationDirection"exiting" (old scene) or "entering" (new scene)
  • children — the scene being wrapped

The same component wraps both scenes simultaneously. You animate different things depending on direction.

Golden Rules

  1. Never use CSS transitions/animations — all motion via interpolate() / spring() driven by presentationProgress
  2. Never use useCurrentFrame() inside a transition component — use presentationProgress only
  3. Always return { component, props: {} } — the props object must exist even if empty
  4. Create instances outside components at module level to keep them stable across re-renders
  5. Pair with linearTiming (for dramatic frame-perfect transitions) or springTiming (for springy physics)

When to Load References