remotion-best-practices

Implements React-based video creation workflows using Remotion compositions, animations, and media components.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/QT-7274/dotfiles --skill remotion-best-practices-qt-7274
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/QT-7274/dotfiles/tree/main/remotion-best-practices
Command: npx skills add https://github.com/QT-7274/dotfiles --skill remotion-best-practices-qt-7274

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Writing programmatic videos in React with Remotion requires domain-specific knowledge about frame-driven animation, media handling, captions, fonts, and rendering constraints that general React experience does not cover. ## Core Features & Use Cases - Project scaffolding and composition setup: Create new Remotion projects and define compositions with dynamic duration, dimensions, and props via calculateMetadata. - Animation and sequencing guidance: Animate with useCurrentFrame, interpolate, and Bézier easing while avoiding forbidden CSS transitions, and orchestrate timing with Sequence and Series. - Media and asset handling: Embed images, videos, audio, GIFs, Lottie files, 3D content, captions, and fonts with correct Remotion patterns. - Use Case: Build a captioned social media video by transcribing audio with Whisper, displaying TikTok-style captions with word highlighting, and syncing audio-reactive visualizations. ## Quick Start Use the remotion-best-practices skill to scaffold a new Remotion video project and add an animated title composition.

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 a Remotion video?▼

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

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

Transcribe audio with the transcribe() function from @remotion/install-whisper-cpp, or import existing .srt files with parseSrt() from @remotion/captions. Display them using createTikTokStyleCaptions() for paginated, word-highlighted captions.

Can I use TailwindCSS with Remotion?▼

Yes, TailwindCSS works in Remotion once installed and enabled per the official docs. However, transition-* and animate-* classes must be avoided; all animation must use the useCurrentFrame() hook to render correctly.

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

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

Why does my Remotion animation flicker during rendering?▼

Flickering occurs when animations are not driven by useCurrentFrame(), such as CSS animations or useFrame() from @react-three/fiber. All motion must derive from the current frame to stay deterministic across renders.

How do I make a Remotion composition duration dynamic?▼

Add a calculateMetadata function to the Composition that returns durationInFrames, width, height, or transformed props. It can fetch data or measure media files with Mediabunny to compute values before rendering.