remotion-dev/remotion/remotion-markup
Claude Code and agent skill by remotion-dev/remotion
- community
Checking that the SKILL.md file is still in the repository.
Content, animation and effects best practices
Install
npx vskill@latest install remotion-dev/remotion/remotion-markupSKILL.md
This is guidance for writing Remotion React Markup. If this is not relevant, load Remotion Best Practices instead.
Preserve user changes
Users may make edits in the code outside of the conversation.
If you detect a surprising change made in the meanwhile, don't overwrite it, assume it was intentional or ask for confirmation.
General rules
Keep useCurrentFrame() in the smallest component that needs it. Extract frame-dependent audio volume, titles, and overlays into their own components instead of subscribing the whole composition or scene; otherwise unrelated descendants re-render on every frame. Preserve the existing frame coordinates when extracting across timing boundaries, and keep editable interpolations inline on the item's props.
Inside a composition or scene component, get fps from useVideoConfig() for all seconds-to-frames calculations, including timing props such as from, trimBefore and durationInFrames. Keeping the expression on the JSX node, such as trimBefore={4 * fps}, lets Studio edit the timing and keeps it correct if the composition frame rate changes.
Drive animations using useCurrentFrame() and interpolate(). CSS transition or animation will not render correctly, they need to refactored. Tailwind animation class will not render correctly, they need to be refactored.
Use Easing.bezier() and Easing.spring() to customize timing.
Before choosing the markup hierarchy, read editable timeline structure. Choose editing units first, then the tracks or shared timing boundaries they need. It includes a complete example with interactive components and their registrations. For source-editable styles, schemas, and keyframes, see Remotion Interactivity.
Keep the interpolate() call inline in the style prop. Use scale, translate, rotate CSS properties over transform.
Assets
Place assets in the public/ folder at your project root. Use staticFile() to reference files from the public/ folder.
Media components
Add video and audio using <Video> and <Audio> from @remotion/media. Add images using the <CanvasImage> component. Add animated GIFs, APNG, WebP or AVIF images using <AnimatedImage>, use @remotion/gif if not using Chrome. Use staticFile() for files in public/ or pass a remote URL directly:
If the composition is primarily a timeline of video or audio clips, read video-editing.md before choosing its source structure.
Delaying, trimming
Use sequencing to choose the timing boundary and timing props for the supported props and order of operations.
Maps
See Remotion Maps if wanting to include maps in the video.
Text highlights and annotations
See text-highlights.md for text highlights (highlight markers), circles, underlines, strike-throughs, crossed-off text, boxes.
Multi-scene videos
See multi-scene-video.md if planning to make a video with multiple subsequent scenes.
Connected compositions
Read connected compositions when a scene or group needs its own editable timeline, or when handling a Studio pre-compose request. It covers extraction, registration, inherited styles, and verification in both the parent and standalone views.
Voiceover
See voiceover.md for adding an AI-generated voiceover to Remotion compositions using ElevenLabs TTS.
Embedding Videos
See embedding-videos.md for advanced knowledge about embedding videos - trimming, volume, speed, looping, pitch.
Embedding Audio
See audio.md for advanced audio features like trimming, volume, speed, pitch.
Cropping
See cropping.md if needing to crop the visible rectangle of a component.
Video matting
For background removal, text behind a subject, background blur or replacement, and effects applied only to a subject, read video-matting.md. Generate reusable foreground layers with @remotion/video-matting before composing them.
Transitions
See transitions.md for scene transition patterns.
Motion blur
When adding motion blur or a movement trail, read motion-blur.md for the preferred HTML-in-canvas approach, preview requirements, and alternatives.
Visual and pixel effects
When adding a visual effect, first identify the element or group it should affect. If the target component supports effects and a built-in effect below matches the request, prefer that effect over a CSS approximation. For example, apply vignette() directly to a <Video>'s effects prop when the vignette should affect that video.
These components accept effects directly:
| Import from | Components | |
|---|---|---|
remotion | <Img>, <CanvasImage>, <AnimatedImage>, <Solid>, <HtmlInCanvas> | |
@remotion/media | <Video> | |
@remotion/gif | <Gif> | |
@remotion/rive | <RemotionRiveCanvas> | |
@remotion/shapes | <Arrow>, <Callout>, <Circle>, <Ellipse>, <Heart>, <Pie>, <Polygon>, <Rect>, <Spark>, <Star>, <Triangle> |
Ordinary HTML elements, <Interactive.*> DOM wrappers, <AbsoluteFill>, and <Sequence> do not accept effects directly. To apply effects to their content, wrap them in <HtmlInCanvas> and put the effects prop on the wrapper.
For other elements, prefer regular HTML and CSS where suitable. Consider wrapping a group in `<HtmlInCanvas>` when post-processing the whole group is appropriate and the environment supports it.
Read effects.md before applying an effect for imports, parameters, and setup. It also covers reusable custom effects with createEffect() when no built-in effect matches.
Available effects
Built-in effects from @remotion/effects:
- Color and tone:
brightness(),colorCorrection(),colorKey(),contrast(),curves(),duotone(),exposure(),grayscale(),hue(),invert(),levels(),linearGradient(),linearGradientTint(),lut(),saturation(),shadowsHighlights(),thermalVision(),tint(),vibrance(),whiteBalance(). - Blur and trails:
blur(),lightTrail(),linearProgressiveBlur(),radialProgressiveBlur(),regionBlur(),zoomBlur(). - Lighting:
dropShadow(),longShadows(),glow(),lightLeak(),shine(),starburst(),vignette(). - Distortion and transforms:
barrelDistortion(),chromaticAberration(),cornerPin(),fisheye(),mirror(),noiseDisplacement(),scale(),skew(),tile(),uvTranslate(),wave(),xyTranslate(). - Textures and patterns:
burlap(),checkerboard(),contourLines(),dotGrid(),emboss(),flannel(),gridlines(),halftone(),halftoneLinearGradient(),lines(),liquidContours(),noise(),paper(),pattern(),rings(),scanlines(),speckle(),tvSignalOff(),waves(),whiteNoise(),zigzag(). - Edges:
outline(),roughenEdges(),shrinkwrap(),tear(). - Pixelation and transitions:
evolve(),linearProgressivePixelate(),pixelate(),pixelDissolve(),radialProgressivePixelate(),venetianBlinds().
Color correction
Read color-correction.md for primary adjustments with colorCorrection(), tonal mapping with levels() or curves(), their Studio editors, and 3D .cube color grades with lut().
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.
Maps
For static maps, animated routes and markers, geographic explainers, Mapbox, MapLibre, MapTiler, GeoJSON, or 3D geographic flyovers, load Remotion Maps.
Captions
When dealing with captions or subtitles, load the Remotion Captions skill for more information.
Arabic and right-to-left text
For Arabic, Persian, Urdu or Hebrew text, read arabic-text.md: set the base direction, animate by word, and split letters only in a way that keeps them joined.
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.
Timing
See timing.md for more timing techniques for interpolate().
Parameterized videos
See parameters.md for making a composition parametrizable by adding a Zod schema.
Measuring DOM nodes
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skills/skills/remotion-markup/SKILL.md
Popularity
- Repository stars
- 60,528
- Repository forks
- 4,672
- 7-day trend score
- 55
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/remotion-dev/remotion/remotion-markup)