remotion-best-practices

Guides creation, animation, and rendering of programmatic videos with Remotion and React.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/Dhruv-Ghanchi/Portfolio-Webiste --skill remotion-best-practices-dhruv-ghanchi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/Dhruv-Ghanchi/Portfolio-Webiste/tree/main/.agents/skills/remotion-best-practices
Command: npx skills add https://github.com/Dhruv-Ghanchi/Portfolio-Webiste --skill remotion-best-practices-dhruv-ghanchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires remotion, @remotion/media, @remotion/captions, @remotion/three, @remotion/google-fonts, @remotion/lottie, @remotion/gif, @remotion/effects, mediabunny, and includes references (resource) components.

What problem does it solve? Writing Remotion videos involves many framework-specific rules—frame-driven animation, sequencing, captions, fonts, maps, 3D, and rendering—and mistakes cause flickering, broken renders, or non-editable Studio markup. This Skill routes each task to the correct reference guide so the generated Remotion code follows current best practices. ## Core Features & Use Cases - Task Routing: Directs work to specialized references for project scaffolding, React markup, captions, rendering, SaaS apps, upgrades, interactivity, and Mediabunny multimedia handling. - Markup Rules: Enforces useCurrentFrame() and interpolate()-driven animation, forbids CSS transitions, and covers audio, video, GIFs, Lottie, fonts, maps, effects, and 3D with Three.js. - Docs Lookup: Searches Remotion documentation via Algolia and fetches pages as Markdown for up-to-date API usage. - Use Case: Ask the agent to build a captioned promotional video; it scaffolds a project, writes frame-driven markup, transcribes and displays TikTok-style captions, and renders the final MP4. ## Quick Start Create a new Remotion video project with an animated title and captions following best practices.

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 new Remotion video project?

Scaffold a project with npx create-video@latest --yes --blank --no-tailwind, then install dependencies and start the preview with npx remotion studio --no-open. Add React markup following the frame-driven animation rules.

How do I animate elements in Remotion?

Animate using useCurrentFrame() with interpolate() and Easing.bezier() for timing. CSS transitions, CSS animations, and Tailwind animation classes are forbidden because they do not render correctly.

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

Use the @remotion/captions package with the Caption type. Transcribe audio to generate captions, import existing .srt files with parseSrt(), or display them with createTikTokStyleCaptions() for word-by-word highlighting.

Can I use Three.js 3D content in Remotion?

Yes, install @remotion/three and wrap 3D content in ThreeCanvas with width and height props. All animations must be driven by useCurrentFrame(); using useFrame() from @react-three/fiber is forbidden to avoid flickering.

How do I render a Remotion video to MP4?

Run npx remotion render for videos or npx remotion still for single frames. For advanced options like transparent videos, WebGL effects, or Lambda rendering, use the --gl=angle flag or the SaaS rendering guidance.

How do I get video duration or dimensions in Remotion?

Use the Mediabunny library with Input and UrlSource to call computeDuration() or read the primary video track's displayWidth and displayHeight. These values can feed calculateMetadata to set composition duration and dimensions dynamically.