Loading...
Loading...
Best practices for Remotion - Video creation in React. Use when creating programmatic videos with Remotion, adding animations or transitions, working with audio/captions, rendering compositions, embedding 3D content, building charts, or using Mapbox maps in video.
npx skill4agent add oakoss/agent-skills remotionuseCurrentFrame()| Pattern | API / Approach | Key Points |
|---|---|---|
| Basic animation | | Always clamp with |
| Spring animation | | |
| Composition | | Always set explicit dimensions |
| Dynamic metadata | | Set duration, dimensions, props before render |
| Sequencing | | |
| Series | | Sequential playback; negative offset for overlaps |
| Transitions | | Total duration = sum of scenes minus transition durations |
| Audio/Video | | Use |
| Captions | | Token-level word highlighting via |
| Images | | Never use native |
| GIFs | | Synced with timeline; |
| Fonts | | Call |
| 3D content | | Must set |
| Text measurement | | Load fonts first; match properties for measurement and render |
| Parameters | Zod schema on | Top-level must be |
| Transparent video | | WebM for browser; ProRes 4444 for editing software |
| Maps | Mapbox with | Set |
| Mistake | Correct Pattern |
|---|---|
Using CSS animations or | Use |
Using native | Use |
| Hardcoding video duration | Use |
| Not specifying width/height on compositions | Always define explicit dimensions to avoid rendering issues |
Using | Use |
Forgetting | Always premount sequences to preload components before playback |
Not clamping | Set |
Placing | Set |
ExploreTaskPlan