remotion-best-practices
Installation
SKILL.md
When to use
Use this skill whenever you are writing or modifying Remotion code. It covers the fundamental patterns that every Remotion project needs — from animation primitives to render settings.
Critical Rules
- ALL animations MUST use
useCurrentFrame()— CSS transitions, CSS animations, and Tailwind animation classes are FORBIDDEN. They do not render correctly because Remotion renders each frame independently. - Use
spring()for organic motion, notinterpolate()with easing. Springs feel natural. Linear/eased interpolations feel mechanical. - Write timing in seconds, convert to frames — multiply by
fpsfromuseVideoConfig(). Never hardcode frame numbers without commenting the equivalent seconds. - Always clamp interpolations — use
extrapolateLeft: 'clamp', extrapolateRight: 'clamp'to prevent values from going out of range. - 1920x1080 at 30fps is the standard. Design for this. All size guidelines assume this resolution.