remotion-markup
Skill2 starsChanged 4 months agoApache-2.0View on GitHub
Best practices for writing Remotion React Markup
23 other projects use a version of this, 20 of them edited.
Adopted by
Most recently taken up by
- mia-cx/skillsedited, first seen Nov 8, 2026
- remotion-dev/claude-code-pluginedited, first seen Nov 5, 2026
- remotion-dev/kimi-code-pluginedited, first seen Nov 5, 2026
- remotion-dev/skillsedited, first seen Nov 5, 2026
- sunavoine-sys/Claude-Skillsedited, first seen Nov 1, 2026
- jjsizemore/jjskillsedited, first seen Nov 1, 2026
Used with
Projects with it also use remotion-license, web-design-guidelines and 2 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.
mia-cxSkillremotion-license
Find Remotion license information, FAQs, terms, and where to buy a license.
Also in 4 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 4 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 3 projects that use this
VercelSkillfind-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 3
- gabros20/product-skill★ 1100% same
- gabros20/architecture-skill★ 0100% same
- gabros20/backend-skill★ 0100% same
Edited · 20
- openai/plugins★ 7.8k52% same
- remotion-dev/skills★ 6.6k33% same
- remotion-dev/claude-code-plugin★ 7933% same
- STARDUSTLC666/dsh-remotion★ 3432% same
- AnayDhawan/openvidstudio★ 3350% same
- muzimu217/ui-design-agent-kit★ 2325% same
- diko0071/remotion-video-skills★ 951% same
- mia-cx/skills★ 433% same
- nomdedev/agent-manager-template★ 244% same
- remotion-dev/kimi-code-plugin★ 233% same
10 more not listed
Wrote their own version · 0
None found.
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 repository35 other files it gives its agents.
- embedded-captionsSkill
- faceless-explainerSkill
- general-videoSkill
- graphic-overlaysSkill
- hyperframes-animationSkill
- hyperframes-cliSkill
- hyperframes-coreSkill
- hyperframes-creativeSkill
- hyperframes-mediaSkill
- hyperframes-registrySkill
- hyperframesSkill
- mediabunnySkill
- motion-graphicsSkill
- product-launch-videoSkill
- pr-to-videoSkill
- remotion-best-practicesSkill
- remotion-captionsSkill
- remotion-createSkill
- remotion-docsSkill
- remotion-interactivitySkill
- remotion-renderSkill
- remotion-saasSkill
- remotion-to-hyperframesSkill
- remotion-upgradeSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- website-to-videoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 5 are common, 2 are distinctive, and 11 are very specific to this project.
5
Common
Most of the 20 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 9
If this is not relevant, load Remotion Best Practices instead.
- Very specific: line 15
Use interpolate() over spring().
- Very specific: line 17
Use Easing.bezier() to customize timing, including jumpy or overshooting motion.
- Very specific: line 18
Use Easing.spring() if you want spring animations
- Very specific: line 46
Keep the interpolate() call inline in the style prop.
- Very specific: line 47
Prefer scale, translate, rotate CSS properties over transform.
- Very specific: line 68
Place assets in the public/ folder at your project root.
- Very specific: line 70
Use staticFile() to reference files from the public/ folder.
- Very specific: line 72
Add video and audio using @remotion/media.
- Very specific: line 73
Add images using the <Img> component.
- Very specific: line 74
Use staticFile() for files in public/ or pass a remote URL directly:
- Common: line 185
When needing to use sound effects, load the ./sfx.md file for more information.
- Common: line 189
When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the ./audio-visualization.md file for more …
- Common: line 193
When dealing with captions or subtitles, load the Remotion Captions skill for more information.
- Common: line 237
When needing to detect and trim silent segments from video or audio files, load the ./silence-detection.md file.
- Very specific: line 253
Use npx remotion add to add new packages with the right version:
- Distinctive: line 263
Only do this if you think the user wants to see the preview.
- Distinctive: line 270
If already started, the URL will be printed.
“Common” is measured: kept by at least 6 in 10 of the 20 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
This is guidance for writing Remotion React Markup. If this is not relevant, load Remotion Best Practices instead.
General rules
Animate properties using useCurrentFrame() and interpolate().
Use interpolate() over spring().
Use Easing.bezier() to customize timing, including jumpy or overshooting motion.
Use Easing.spring() if you want spring animations
HTML Elements which make sense to be made interactive in the Studio should use Interactive: <div> -> <Interactive.Div>.
Set a descriptive name prop such as name="Hero title" for Interactive, Solid, Sequence.
import { useCurrentFrame, Easing, interpolate, Interactive } from "remotion";
export const FadeIn = () => {
const frame = useCurrentFrame();
return (
<Interactive.Div
name="Title"
style={{
opacity: interpolate(frame, [0, 60], [0, 1], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: Easing.bezier(0.16, 1, 0.3, 1),
}),
}}
>
Hello World!
</Interactive.Div>
);
};Keep the interpolate() call inline in the style prop.
Prefer scale, translate, rotate CSS properties over transform.
// 👍 Inline editable keyframes and transform shorthands
style={{
scale: interpolate(frame, [0, 100], [0, 1]),
translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"]),
rotate: interpolate(frame, [0, 100], ["20deg", "90deg"]),
}}
// 👎 Hidden values and transform strings become harder to edit in Studio
const scale = interpolate(frame, [0, 100], [0, 1]);
style={{
transform: `scale(${scale})`,
}}CSS transitions or animations are FORBIDDEN - they will not render correctly.
Tailwind animation class names are FORBIDDEN - they will not render correctly.
Place assets in the public/ folder at your project root.
Use staticFile() to reference files from the public/ folder.
Add video and audio using @remotion/media.
Add images using the <Img> component.
Use staticFile() for files in public/ or pass a remote URL directly:
import { Audio, Video } from "@remotion/media";
import { staticFile } from "remotion";
export const MyComposition = () => {
return (
<>
<Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />
<Audio src={staticFile("audio.mp3")} />
<Img src={staticFile("logo.png")} style={{ width: 100, height: 100 }} />
<Video src="https://remotion.media/video.mp4" />
</>
);
};To delay content wrap it in <Sequence> and use from.
To limit the duration of an element, use durationInFrames of <Sequence>.
<Sequence> by default is an absolute fill covering the scene.
For inline content, use layout="none".
const Main = () => {
const {fps} = useVideoConfig();
return (
<AbsoluteFill>
<Sequence name="Background">
<Background />
</Sequence>
<Sequence name="Title" from={30} durationInFrames={60} layout="none">
<Title />
</Sequence>
<Sequence name="Subtitle" from={60} durationInFrames={60} layout="none">
<Subtitle />
</Sequence>
</AbsoluteFill>
);
}
export const Title = () => {
const frame = useCurrentFrame();
return (
<div
style={{
opacity: interpolate(frame, [0, 60], [0, 1], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: Easing.bezier(0.16, 1, 0.3, 1),
}),
}}
>
Title
</div>
);
};
export const Subtitle = () => {
return <div>Subtitle</div>;
};Maps
See map.md for choosing between simple static maps, Mapbox maps, and MapLibre maps.
Text highlights and annotations
See text-highlights.md for text highlights (highlight markers), circles, underlines, strike-throughs, crossed-off text, boxes, and brackets.
Voiceover
See voiceover.md for adding AI-generated voiceover to Remotion compositions using ElevenLabs TTS.
Trimming
See trimming.md for trimming patterns - cutting the beginning or end of animations.
Embedding Videos
See embedding-videos.md for advanced knowledge about embedding videos - trimming, volume, speed, looping, pitch.
Video editing
See video-editing.md for structuring editable video timelines in Remotion Studio.
Embedding Audio
See audio.md for advanced audio features like trimming, volume, speed, pitch.
Transitions
See transitions.md for scene transition patterns.
Visual and pixel effects
When creating a visual effect, prefer: 1. normal Remotion/HTML/CSS/SVG/filter/blend/mask animation, 2. a listed effect via effects.md, including on HTML rendered through <HtmlInCanvas>, 3. a custom createEffect() via effects.md when the user asks for a reusable/project-specific effect, 4. custom <HtmlInCanvas onPaint> via html-in-canvas.md only if no effect fits.
For light leak overlays, see light-leaks.md. Docs: https://www.remotion.dev/docs/effects
Available effects: brightness(), contrast(), colorKey(), duotone(), grayscale(), hue(), invert(), saturation(), tint(), linearGradient(), linearGradientTint(), thermalVision(), blur(), linearProgressiveBlur(), radialProgressiveBlur(), zoomBlur(), dropShadow(), glow(), lightTrail(), evolve(), venetianBlinds(), mirror(), scale(), uvTranslate(), xyTranslate(), barrelDistortion(), chromaticAberration(), fisheye(), cornerPin(), wave(), burlap(), emboss(), dotGrid(), halftone(), noise(), noiseDisplacement(), paper(), roughenEdges(), pattern(), pixelate(), pixelDissolve(), scanlines(), speckle(), shine(), shrinkwrap(), vignette(), contourLines(), checkerboard(), halftoneLinearGradient(), gridlines(), whiteNoise(), tvSignalOff(), lines(), rings(), waves(), zigzag(), lightLeak(), starburst().
3D content
See 3d.md for 3D content in Remotion using Three.js and React Three Fiber.
Sound effects
When needing to use sound effects, load the ./sfx.md file for more information.
Audio visualization
When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the ./audio-visualization.md file for more information.
Captions
When dealing with captions or subtitles, load the Remotion Captions skill for more information.
Google Fonts
Is the recommended way to load fonts in Remotion. See google-fonts.md for how to load Google Fonts.
Local fonts
See local-fonts.md for how to load local fonts.
GIFs
See gifs.md for how to display GIFs synchronized with Remotion's timeline.
Advanced Images
See images.md for sizing and positioning images, dynamic image paths, and getting image dimensions.
Lottie animations
See lottie.md for embedding Lottie animations in Remotion.
Advanced timing
See timing.md for advanced timing with interpolate and Bézier easing, and springs.
Parameterized videos
See parameters.md for making a composition parametrizable by adding a Zod schema.
Measuring DOM nodes
See measuring-dom-nodes.md for measuring DOM element dimensions in Remotion.
Measuring text
See measuring-text.md for measuring text dimensions, fitting text to containers, and checking overflow.
Using FFmpeg
For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the ./ffmpeg.md file for more information.
Silence detection
When needing to detect and trim silent segments from video or audio files, load the ./silence-detection.md file.
Dynamic duration, dimensions and data
See calculate-metadata.md for dynamically set composition duration, dimensions, and props.
Advanced compositions
See compositions.md for how to define stills, folders, default props and for how to nest compositions.
Advanced sequencing
See sequencing.md for more sequencing patterns - delay, trim, limit duration of items.
Install modules
Use npx remotion add to add new packages with the right version:
npx remotion add @remotion/mediaThis goes for @remotion/* packages, mediabunny, @mediabunny/*, and zod.
Previewing markup
Only do this if you think the user wants to see the preview.
npx remotion studio --no-openThis will start a long-running process and print the server URL for the preview.
If already started, the URL will be printed.
Optional: one-frame render check
You can render a single frame with the CLI to sanity-check layout, colors, or timing.
Skip it for trivial edits, pure refactors, or when you already have enough confidence from Studio or prior renders.
npx remotion still [composition-id] --scale=0.25 --frame=30At 30 fps, --frame=30 is the one-second mark (--frame is zero-based).
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.

