remotion-best-practices

Provides best-practice rules for building programmatic videos in React with Remotion.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/alecanche04-cyber/examenprograma --skill remotion-best-practices-alecanche04-cyber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/alecanche04-cyber/examenprograma/tree/main/EXAMEN_PROGRA_2-master/.agents/skills/remotion-best-practices
Command: npx skills add https://github.com/alecanche04-cyber/examenprograma --skill remotion-best-practices-alecanche04-cyber

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing Remotion video code without domain knowledge leads to common mistakes like CSS animations that flicker during rendering, unsynchronized media, and incorrect asset loading. This Skill supplies the domain-specific rules needed to write correct Remotion compositions. ## Core Features & Use Cases - Animation & Timing Rules: Drive all animations with useCurrentFrame(), springs, and interpolation instead of forbidden CSS transitions. - Media Handling: Embed videos, audio, images, GIFs, Lottie files, and fonts with correct loading and trimming patterns. - Captions & Subtitles: Transcribe audio with Whisper, import SRT files, and render TikTok-style word-highlighted captions. - Use Case: When asked to build a video with animated captions over footage, load this Skill to get the correct @remotion/captions workflow, sequencing patterns, and rendering-safe animation code. ## Quick Start Use the remotion-best-practices skill to create a Remotion composition with a spring-animated title and background music.

Frequently Asked Questions about remotion-best-practices

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

FAQPage Schema
How do I animate elements in Remotion?

Drive all animations with the useCurrentFrame() hook combined with interpolate() or spring(). CSS transitions, CSS animations, and Tailwind animate classes are forbidden because they do not render correctly during video export.

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

Transcribe audio with @remotion/install-whisper-cpp or import an .srt file with parseSrt() from @remotion/captions. Then use createTikTokStyleCaptions() to group words into pages and render them in Sequence components with word highlighting.

Can I use TailwindCSS in a Remotion project?

Yes, TailwindCSS works in Remotion once installed and enabled per the official docs. However, transition-* and animate-* utility classes must be avoided; all motion must come from useCurrentFrame()-driven values.

Why does my Remotion video flicker during rendering?

Flickering usually comes from animations not driven by useCurrentFrame(), such as CSS animations, useFrame() from React Three Fiber, or third-party library animations. Disable library animations and compute all motion from the current frame.

How do I get a video's duration or dimensions in Remotion?

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