🎥 Make videos programmatically with React
fix gif api
Jonny Burger5d3997f200e7
diff --git a/packages/docs/docs/animatedimage.mdx b/packages/docs/docs/animatedimage.mdxindex 8d65ea76af..2761597d09 100644--- a/packages/docs/docs/animatedimage.mdx+++ b/packages/docs/docs/animatedimage.mdx@@ -76,6 +76,10 @@ The looping behavior of the animated image. Can be one of these values:- `'pause-after-finish'`: The animated image will play once and then show the last frame.- `'clear-after-finish'`: The animated image will play once and then clear the canvas.+### `playbackRate?`++The playback rate of the animated image. Defaults to `1`. For example, `2` will play the animation twice as fast, `0.5` will play it at half speed.+### `ref?`<AvailableFrom v="3.3.88" />You can add a [React ref](https://react.dev/learn/manipulating-the-dom-with-refs) to `<AnimatedImage />`. If you use TypeScript, you need to type it with `HTMLCanvasElement`.diff --git a/packages/skills/skills/remotion/rules/gifs.md b/packages/skills/skills/remotion/rules/gifs.mdindex a2eaede361..d067c759ea 100644--- a/packages/skills/skills/remotion/rules/gifs.md+++ b/packages/skills/skills/remotion/rules/gifs.md@@ -60,8 +60,8 @@ Control what happens when the animation finishes:// Play once, show final frame<AnimatedImage src={staticFile("animation.gif")} width={500} height={500} loopBehavior="pause-after-finish" />-// Play once, then unmount-<AnimatedImage src={staticFile("animation.gif")} width={500} height={500} loopBehavior="unmount-after-finish" />+// Play once, then clear canvas+<AnimatedImage src={staticFile("animation.gif")} width={500} height={500} loopBehavior="clear-after-finish" />```## Styling