remotion-best-practices

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

1|Updated Aug 17, 2025
One-click install
npx skills add https://github.com/ratnesh-maurya/mdconverter --skill remotion-best-practices-ratnesh-maurya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/ratnesh-maurya/mdconverter/tree/main/.claude/skills/remotion-best-practices
Command: npx skills add https://github.com/ratnesh-maurya/mdconverter --skill remotion-best-practices-ratnesh-maurya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Remotion video code without domain knowledge leads to common mistakes like CSS animations that flicker during rendering, wrong media components, and incorrect timing. This Skill supplies curated rule files covering every major Remotion topic so generated video code renders correctly. ## Core Features & Use Cases - Animation & Timing Rules: Enforces useCurrentFrame()-driven animations, spring configs, interpolation, easing, and sequencing patterns instead of forbidden CSS transitions. - Media Handling: Covers embedding videos, audio, images, GIFs, Lottie animations, fonts, and 3D content with the correct Remotion components and packages. - Captions & Metadata: Guides transcription, SRT import, TikTok-style caption display, and dynamic composition metadata via calculateMetadata and Mediabunny utilities. - Use Case: When asked to build a video composition with animated bar charts and synced captions, consult the charts, timing, and display-captions rules to produce flicker-free, render-safe Remotion code. ## Quick Start Read the relevant rule file for the Remotion task at hand and apply its patterns when writing the composition code.

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 without flickering?

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 video or audio to a Remotion composition?

Install @remotion/media and use its Video or Audio components with staticFile() for local assets or remote URLs. These components support trimming, volume callbacks, playbackRate, looping, muting, and pitch adjustment via toneFrequency.

Can I use TailwindCSS in a Remotion project?

Yes, TailwindCSS can and should be used in Remotion if installed in the project. However, transition-* and animate-* utility classes must be avoided; all motion must come from useCurrentFrame()-driven values.

How do I display TikTok-style captions in Remotion?

Install @remotion/captions and use createTikTokStyleCaptions() to group captions into pages, then render each page inside a Sequence. Highlight the currently spoken word by comparing token timestamps against the current frame time.

Why do my Three.js animations flicker in Remotion renders?

Flickering occurs when animations are not driven by useCurrentFrame(), such as using useFrame() from @react-three/fiber. Wrap 3D content in ThreeCanvas from @remotion/three and animate only via frame-based values.

How do I set composition duration dynamically based on a video file?

Use the calculateMetadata function on a Composition together with Mediabunny to read the video duration in seconds, then return durationInFrames computed from that duration multiplied by the fps.