Remotion Video Creation
Remotion is a powerful framework for creating videos programmatically with React. This skill provides the essential knowledge and rules for building professional-quality motion graphics.
Quick Start
- Initialize a Project: Use
npx create-remotion@latestto start a new project. - Define a Composition: Every Remotion project starts with a composition that defines the dimensions, duration, and FPS.
- Animate with Code: Use
useCurrentFrame()anduseVideoConfig()to drive your animations based on the current frame number.
Core Reference Modules
This skill includes detailed reference files for various Remotion features. Each file contains specific patterns and code examples:
Animation & Timing
- animations.md - Fundamental animation skills.
- timing.md - Interpolation curves (linear, easing, spring).
- text-animations.md - Typography and text animation patterns.
- transitions.md - Scene transition patterns.
Media & Assets
- assets.md - Importing images, videos, audio, and fonts.
- audio.md - Advanced audio handling (trimming, volume, pitch).
- videos.md - Embedding and manipulating video components.
- images.md - Using the
Imgcomponent. - gifs.md - Synchronized GIF display.
- lottie.md - Lottie animation integration.
- fonts.md - Loading Google and local fonts.
Specialized Features
- 3d.md - 3D content with Three.js and React Three Fiber.
- charts.md - Data visualization patterns.
- maps.md - Mapbox integration and animation.
- tailwind.md - Styling with TailwindCSS.
- parameters.md - Parametrized videos with Zod schemas.
Utility & Analysis (Mediabunny)
- get-video-dimensions.md / get-video-duration.md - Media metadata extraction.
- extract-frames.md - Extracting frames at specific timestamps.
- calculate-metadata.md - Dynamic composition settings.
Best Practices
- Avoid logic in render: Keep your component clean. Use helper functions for complex calculations.
- Prefer Spring animations: They feel more natural than linear or easing for UI-like motion.
- Use Mediabunny for Assets: Always verify if a video can be decoded (can-decode.md) before using it in a heavy pipeline.
- Clean Sequences: Use
Sequencecomponents to manage timing and modularize your video parts (sequencing.md).
[中文说明] / [English Version] 生成的 Remotion 代码应包含中英双语注释。 Generated Remotion code should include bilingual comments (Chinese and English).