remotion-best-practices

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

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill remotion-best-practices-lgj-jonathan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills/tree/main/remotion-best-practices
Command: npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill remotion-best-practices-lgj-jonathan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Writing Remotion video code without domain knowledge leads to common rendering bugs like flickering animations, unloaded assets, and incorrect timing. This Skill supplies curated rules and code patterns so generated Remotion code renders correctly. ## Core Features & Use Cases - Animation & Timing Rules: Enforces frame-driven animations with useCurrentFrame(), interpolate, and spring instead of forbidden CSS transitions. - Media Handling Patterns: Covers embedding and trimming videos, audio, images, GIFs, Lottie files, fonts, and captions with the correct Remotion components. - Composition & Metadata Guidance: Explains compositions, sequences, transitions, and dynamic calculateMetadata for data-driven durations and dimensions. - Use Case: When asked to build a TikTok-style captioned video or an animated bar chart in Remotion, the Skill supplies the exact component patterns and pitfalls to avoid. ## 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() from Remotion. CSS transitions, CSS animations, and Tailwind animation classes are forbidden because they do not render correctly during video export.

How do I add audio or video to a Remotion composition?

Use the Audio and Video components from @remotion/media with staticFile() for local files or remote URLs directly. They support trimming with trimBefore and trimAfter, volume callbacks, playbackRate, looping, and pitch adjustment via toneFrequency.

Can I use TailwindCSS with Remotion?

Yes, TailwindCSS works in Remotion once installed and enabled in the project. However, avoid transition-* and animate-* classes since all motion must be driven by useCurrentFrame() to render correctly.

How do I display captions in a Remotion video?

Use @remotion/captions to parse .srt files or transcribe audio, then group captions into pages with createTikTokStyleCaptions(). Render each page in a Sequence and highlight the active word by comparing token timestamps to the current frame.

Why does my Remotion video flicker during rendering?

Flickering occurs when animations are not driven by useCurrentFrame(), such as CSS animations, useFrame() from React Three Fiber, or third-party library animations. Replace them with frame-based interpolation or springs.

How do I set a dynamic video duration in Remotion?

Use the calculateMetadata function on a Composition to compute durationInFrames from media metadata, for example by reading video duration with Mediabunny. It can also adjust width, height, props, and the default output filename before rendering.