remotion-best-practices

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

Updated Aug 13, 2026
One-click install
npx skills add https://github.com/Martino17x/Sentinel-Invest --skill remotion-best-practices-martino17x
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/Martino17x/Sentinel-Invest/tree/main/.agents/skills/remotion-best-practices
Command: npx skills add https://github.com/Martino17x/Sentinel-Invest --skill remotion-best-practices-martino17x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (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, incorrect asset loading, and mistimed sequences. This Skill supplies the domain-specific rules needed to write correct Remotion compositions. ## Core Features & Use Cases - Animation & Timing Rules: Enforces frame-driven animations via useCurrentFrame(), spring physics, and easing curves instead of forbidden CSS transitions. - Media Handling: Covers importing images, videos, audio, fonts, GIFs, and Lottie files using staticFile() and dedicated Remotion components. - Captions & Subtitles: Guides transcription with Whisper, SRT import, and TikTok-style caption display with word highlighting. - Use Case: When asked to build a video with animated captions over footage, load this Skill to get the correct patterns for sequencing, caption rendering, and audio synchronization. ## Quick Start Use the remotion-best-practices skill to create a Remotion composition with a fade-in 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 animation classes are forbidden because they do not render correctly in exported videos.

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.

How do I import images and videos in Remotion?▼

Place assets in the public/ folder and reference them with staticFile(). Use the Img component from remotion for images and the Video component from @remotion/media for videos, never native HTML img or video tags.

Can I use Three.js or Tailwind CSS with Remotion?▼

Yes. Three.js works via @remotion/three with ThreeCanvas, but all 3D animation must use useCurrentFrame() instead of useFrame(). Tailwind CSS is supported, but transition-* and animate-* classes must be avoided.

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. Convert all motion to frame-based interpolation and disable library-built-in animations.

How do I trim a video in Remotion?▼

Use the trimBefore and trimAfter props on the Video component for non-destructive trimming in frames. Alternatively, run bunx remotion ffmpeg with re-encoding (-c:v libx264) to trim the file permanently and avoid frozen frames.