remotion-best-practices
Skill1 starsChanged 9 months agoApache-2.0View on GitHub
Video creation in React using Remotion. Covers animations, compositions, audio sync, text effects, 3D integration with Three.js, and rendering. Use when building dynamic video generators, editing timelines, or optimizing Remotion renders.
88 other projects use a version of this.
Adopted by
Most recently taken up by
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Oct 5, 2026
- remotion-dev/claude-code-plugintheir own version, first seen Oct 5, 2026
- remotion-dev/kimi-code-plugintheir own version, first seen Oct 5, 2026
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- STARDUSTLC666/dsh-remotiontheir own version, first seen Oct 3, 2026
Used with
Projects with it also use remotion-saas, remotion-maps and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillremotion-saas
Build an app with Remotion
Also in 11 projects that use this
OpenAISkillremotion-maps
Remotion Map animation knowledge
Also in 9 projects that use this
xerocSkillwebsite-to-video
Capture a general website/URL and turn it into a video OF the site — tour, showcase, or social clip built from captured screenshots and the site's own brand assets. Use for portfolio / blog / docs / landing-page showcases. Not a product launch or promo, even from a URL (/product-launch-video). Unclear → /hyperframes.
Also in 3 projects that use this
- +9 more from openai
Other versions88 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 88
- calesthio/OpenMontage★ 63ksame name
- vercel-labs/json-render★ 18ksame name
- openai/plugins★ 7.3ksame name
- remotion-dev/skills★ 4.8ksame name
- composio-community/open-claude-cowork★ 4.3ksame name
- digitalsamba/claude-code-video-toolkit★ 2.2ksame name
- dtsola/xiaoyaosearch★ 1ksame name
- freestylefly/wesight★ 941same name
- coleam00/second-brain-skills★ 832same name
- freestylefly/canghe-skills★ 461same name
78 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- accessibility-wcagSkill
- api-designSkill
- api-testingSkill
- asset-optimizationSkill
- audio-systemsSkill
- aws-essentialsSkill
- ci-cd-pipelinesSkill
- codebase-analysisSkill
- code-reviewerSkill
- container-securitySkill
- cost-optimizationSkill
- database-designSkill
- data-visualizationSkill
- doc-generationSkill
- docker-kubernetesSkill
- docxSkill
- email-notificationsSkill
- env-configSkill
- flutter-mobileSkill
- framer-motionSkill
- frontend-code-reviewSkill
- frontend-designSkill
- fullstack-developerSkill
- game-enginesSkill
- gameplay-designSkill
- game-programming-languagesSkill
- game-serversSkill
- git-workflowSkill
- godot-4Skill
- golang-proSkill
- go-linter-configurationSkill
- graphics-renderingSkill
- i18n-localizationSkill
- incident-responseSkill
- level-designSkill
- llm-integrationSkill
- local-securitySkill
- memory-managementSkill
- monetization-systemsSkill
- monitoring-observabilitySkill
- multiplayer-netcodeSkill
- nextjs-16Skill
- notebooklm-researchSkill
- npm-packageSkill
- oauth-authSkill
- particle-systemsSkill
- performance-optimizationSkill
- playwright-testingSkill
- postgres-advancedSkill
- programming-architectureSkill
- project-migrationSkill
- publishing-platformsSkill
- python-best-practicesSkill
- react-nativeSkill
- redis-patternsSkill
- refactoring-patternsSkill
- rust-best-practicesSkill
- scraping-automationSkill
- security-reviewSkill
- seo-metaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 86 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Every Remotion component follows this structure:
- Very specific: line 69
Use type for props (not interface) to ensure defaultProps type safety.
- Very specific: line 141
Always use staticFile() for local assets in public/:
“Common” is measured: kept by at least 6 in 10 of the 86 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a Remotion expert. All animations must be frame-driven via useCurrentFrame(). CSS transitions and Tailwind animation classes are FORBIDDEN in Remotion, they will not render correctly.
When to use
- Building programmatic videos with React
- Creating animated intros, demos, promo videos
- Generating data-driven video content
- Working with captions, charts, or text animations
Core Pattern
Every Remotion component follows this structure:
import { useCurrentFrame, useVideoConfig, interpolate, spring } from "remotion";
export const MyScene: React.FC = () => {
const frame = useCurrentFrame();
const { fps, width, height } = useVideoConfig();
const opacity = interpolate(frame, [0, 1.5 * fps], [0, 1], {
extrapolateRight: "clamp",
});
const scale = spring({ frame, fps, config: { damping: 12 } });
return (
<div style={{ opacity, transform: `scale(${scale})` }}>
Content here
</div>
);
};Always use seconds * fps, never raw frame numbers:
// BAD
const opacity = interpolate(frame, [0, 45], [0, 1]);
// GOOD
const opacity = interpolate(frame, [0, 1.5 * fps], [0, 1]);Composition Setup
// src/Root.tsx
import { Composition } from "remotion";
import { MyVideo, MyVideoProps } from "./MyVideo";
export const RemotionRoot = () => (
<Composition
id="MyVideo"
component={MyVideo}
durationInFrames={30 * 30} // 30s at 30fps
fps={30}
width={1920}
height={1080}
defaultProps={{ title: "Demo" } satisfies MyVideoProps}
/>
);Use type for props (not interface) to ensure defaultProps type safety.
Sequencing Scenes
import { Sequence } from "remotion";
export const MyVideo: React.FC = () => (
<>
<Sequence from={0} durationInFrames={150}>
<Intro />
</Sequence>
<Sequence from={150} durationInFrames={240}>
<MainContent />
</Sequence>
<Sequence from={390} durationInFrames={150}>
<Outro />
</Sequence>
</>
);Inside each <Sequence>, useCurrentFrame() resets to 0. Design components to start at frame 0.
Animation Patterns
Spring (natural motion, 0 to 1):
const scale = spring({ frame, fps, config: { mass: 1, damping: 10, stiffness: 100 } });Interpolate (map frame range to value range):
import { interpolate, Easing } from "remotion";
const translateY = interpolate(frame, [0, 2 * fps], [50, 0], {
extrapolateRight: "clamp",
easing: Easing.out(Easing.cubic),
});Staggered items:
{items.map((item, i) => {
const delay = i * 5; // 5 frame stagger
const progress = spring({ frame: frame - delay, fps });
return (
<div key={i} style={{ opacity: progress, transform: `translateY(${(1 - progress) * 20}px)` }}>
{item}
</div>
);
})}Audio
import { Audio, interpolate } from "remotion";
import { staticFile } from "remotion";
<Audio
src={staticFile("music.mp3")}
startFrom={30} // trim start (frames)
endAt={300} // trim end (frames)
volume={(f) =>
interpolate(f, [0, 30], [0, 1], { extrapolateRight: "clamp" })
}
/>Assets
Always use staticFile() for local assets in public/:
// BAD
<Img src="/logo.png" />
// GOOD
import { staticFile } from "remotion";
<Img src={staticFile("logo.png")} />For Google Fonts:
import { loadFont } from "@remotion/google-fonts/Inter";
const { fontFamily } = loadFont();Anti-patterns
BAD:
// CSS transition (won't render in video)
<div style={{ transition: "opacity 0.3s" }}>
// Tailwind animate class (won't render)
<div className="animate-bounce">
// Raw frame numbers (unreadable)
const x = interpolate(frame, [0, 90], [0, 100]);
// useEffect for animation (breaks determinism)
useEffect(() => { setOpacity(1); }, []);GOOD:
// Frame-driven opacity
const opacity = interpolate(frame, [0, 3 * fps], [0, 1], {
extrapolateRight: "clamp",
});
// Spring for natural motion
const scale = spring({ frame, fps });
// All state derived from frame, never useState for animationRendering
# Preview
npx remotion preview
# Render to MP4
npx remotion render MyVideo out/video.mp4
# Render specific frames
npx remotion render MyVideo --frames=0-150 out/preview.mp4
# Render as GIF
npx remotion render MyVideo out/video.gif --image-format=pngDeep Dive References
For detailed patterns, load the relevant rule file:
| Topic | File |
| Compositions, stills, folders | rules/compositions.md |
| Interpolation and springs | rules/timing.md |
| Scene transitions | rules/transitions.md |
| Text animations | rules/text-animations.md |
| Captions and subtitles | rules/subtitles.md |
| Charts and data viz | rules/charts.md |
| 3D with Three.js | rules/3d.md |
| Video embedding | rules/videos.md |
| Audio and sound | rules/audio.md |
| Parametrizable videos (Zod) | rules/parameters.md |
| TailwindCSS setup | rules/tailwind.md |
| Maps (Mapbox) | rules/maps.md |
| Transparent video export | rules/transparent-videos.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

