1
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill liandyao/remotion --skill remotion-best-practices- SKILL.md3.5 KB
Overview
This skill captures best practices for building videos with Remotion using React and TypeScript. It collects focused guidance on animation, assets, captions, audio, performance, and integrations like Three.js, Lottie, and Mapbox. The content is practical and example-driven to help you produce reliable, maintainable Remotion projects. It targets both beginners and experienced Remotion users who want consistent patterns.
How this skill works
The skill groups guidance into rule files that address concrete areas: assets, sequencing, timing, media metadata, fonts, captions, and platform integrations. Each rule explains the problem, recommended approach, and code patterns or utilities to use (e.g., Mediabunny helpers, @remotion/captions, Zod schemas). Use the specific rule for step-by-step examples and the recommended APIs to implement the behavior in your compositions.
When to use it
- When creating or refactoring Remotion compositions to follow consistent patterns.
- When you need reliable ways to load, measure, and synchronize media (images, video, audio, fonts).
- When adding complex features like 3D scenes, animated maps, Lottie, or charts.
- When implementing captions, transcriptions, or timed text highlighting.
- When optimizing render performance, trimming clips, or calculating dynamic metadata.
Best practices
- Centralize asset handling: load fonts, images, and audio through dedicated utilities and validate durations/dimensions before rendering.
- Use sequencing and trimming patterns to keep clips predictable and avoid out-of-range frames.
- Derive composition metadata programmatically when durations or dimensions depend on input files.
- Prefer interpolation and easing helpers for smooth timing; test at multiple frame rates.
- Measure text and DOM nodes to prevent overflow and ensure consistent layout across resolutions.
Example use cases
- Create a templated social video that swaps images, captions, and background music based on JSON props.
- Animate a Mapbox-driven map sequence showing an animated route and zoom with synchronized voiceover.
- Build a data-driven chart video where animation timing adapts to dataset length and narration.
- Render a 3D scene using React Three Fiber inside a Remotion composition for dynamic intros.
- Produce captioned clips by transcribing audio and rendering TikTok-style caption pages with highlighting.
FAQ
Use the provided Mediabunny helpers to decode files and read metadata; calculate composition duration from those values to avoid timing mismatches.
Can I use Tailwind or other CSS frameworks inside Remotion?
Yes. Integrate Tailwind into your bundler config and scope styles to components; measure rendered output for consistent spacing across frame sizes.