remotion-markup
Structure Remotion scenes with markup patterns for layout, typography, and reusable video UI.
Install
npx skills add https://github.com/remotion-dev/skills --skill remotion-markup- metadata
- tags: gif, animation, images, animated, apng, avif, webp
Using Animated images in Remotion
Basic usage
Use <AnimatedImage> to display a GIF, APNG, AVIF or WebP image synchronized with Remotion's timeline:
Remote URLs are also supported (must have CORS enabled):
Sizing and fit
Control how the image fills its container with the fit prop:
Playback speed
Use playbackRate to control the animation speed:
Looping behavior
Control what happens when the animation finishes:
Styling
Use the style prop for additional CSS (use width and height props for sizing):
Getting GIF duration
Use getGifDurationInSeconds() from @remotion/gif to get the duration of a GIF.
This is useful for setting the composition duration to match the GIF:
Alternative
If <AnimatedImage> does not work (only supported in Chrome and Firefox), you can use <Gif> from @remotion/gif instead.
The <Gif> component has the same props as <AnimatedImage> but only supports GIF files.