remotion-best-practices

Create programmatic videos in React using Remotion compositions, animations, and media components.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill remotion-best-practices-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/remotion
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill remotion-best-practices-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires remotion, @remotion/media, @remotion/captions, @remotion/three, @remotion/lottie, @remotion/google-fonts, @remotion/fonts, @remotion/media-utils, @remotion/paths, @remotion/light-leaks, @remotion/gif, mediabunny, maplibre-gl, @turf/turf, mapbox-gl, and includes references (resource) components.

What problem does it solve? Writing video content as code requires frame-accurate control that CSS animations and standard React patterns cannot provide, and mistakes cause flickering or broken renders. This Skill supplies the domain-specific rules and patterns needed to build, preview, and render Remotion videos correctly. ## Core Features & Use Cases - Project scaffolding and composition setup: Initialize a Remotion project and define compositions with width, height, fps, duration, and dynamic metadata via calculateMetadata. - Frame-driven animation patterns: Animate with useCurrentFrame, interpolate, Easing, springs, and Sequence timing instead of forbidden CSS transitions. - Media and asset handling: Embed images, videos, audio, GIFs, Lottie files, fonts, captions, maps, and 3D content using dedicated rule files. - Use Case: Build a captioned social media video by scaffolding a project, adding a voiceover audio track, generating TikTok-style word-highlighted captions, and rendering the final MP4 from the CLI. ## Quick Start Use the remotion skill to scaffold a new video project and create an animated title composition that fades in over two seconds.

Frequently Asked Questions about remotion-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a video with Remotion in React?

Scaffold a project with npx create-video@latest, define a Composition in src/Root.tsx with width, height, fps, and durationInFrames, then build animated components using useCurrentFrame and interpolate. Preview with npx remotion studio.

How do I animate elements in Remotion?

Drive all animations with the useCurrentFrame hook and interpolate function, writing durations in seconds multiplied by fps. Use Easing.bezier for custom timing curves and Sequence components to delay or limit element duration.

Can I use CSS animations or Tailwind animation classes in Remotion?

No, CSS transitions, CSS animations, and Tailwind animation class names are forbidden because they do not render correctly. All motion must be driven by useCurrentFrame so each frame renders deterministically.

How do I add captions or subtitles to a Remotion video?

Install @remotion/captions, load captions in the Caption format, and use createTikTokStyleCaptions to group words into pages. Render each page in a Sequence and highlight the active word by comparing token timestamps to the current frame.

How do I trim a video in Remotion without re-encoding?

Use the trimBefore and trimAfter props on the Video component from @remotion/media, specifying values in frames. This is non-destructive and preferred over FFmpeg, which requires re-encoding to avoid frozen frames.

Why does my Remotion 3D or map animation flicker during rendering?

Flickering occurs when animations are not driven by useCurrentFrame, such as using useFrame from React Three Fiber or Mapbox's built-in animations. Disable library-driven motion, set fadeDuration to 0, and render maps with --gl=angle --concurrency=1.