Skip to content

πŸŽ₯ Make videos programmatically with React

Document premounting support for visual components

Jonny Burgerfb1ffb0f9b41
diff --git a/packages/docs/components/shapes/shapes-info.tsx b/packages/docs/components/shapes/shapes-info.tsx
index df975ccac7..967e499772 100644
--- a/packages/docs/components/shapes/shapes-info.tsx
+++ b/packages/docs/components/shapes/shapes-info.tsx
@@ -571,6 +571,48 @@ export const ShapeOptions: React.FC<{
</a>{' '}
from <a href="/docs/sequence">{'<Sequence>'}</a>.
</p>
+ <h3 id="premountfor">
+ <code>premountFor?</code>
+ <AvailableFrom v="4.0.528" />
+ </h3>
+ <p>
+ Mounts the shape before its <code>from</code> frame, transparent and
+ frozen at its first frame. Defaults to <code>0</code> frames in v4
+ and <code>fps</code> (1 second) in v5. See{' '}
+ <a href="/docs/player/premounting">premounting</a>.
+ </p>
+ <h3 id="postmountfor">
+ <code>postmountFor?</code>
+ <AvailableFrom v="4.0.528" />
+ </h3>
+ <p>
+ Keeps the shape mounted after its duration ends, transparent and
+ frozen at its last frame. Defaults to <code>0</code> frames.
+ Requires a finite <code>durationInFrames</code>.
+ </p>
+ <h3 id="stylewhilepremounted">
+ <code>styleWhilePremounted?</code>
+ <AvailableFrom v="4.0.528" />
+ </h3>
+ <p>
+ CSS styles applied while premounted. Defaults to no overrides.
+ Overrides <code>style</code> and the default <code>opacity: 0</code>{' '}
+ and <code>{"pointerEvents: 'none'"}</code>.
+ </p>
+ <h3 id="stylewhilepostmounted">
+ <code>styleWhilePostmounted?</code>
+ <AvailableFrom v="4.0.528" />
+ </h3>
+ <p>
+ CSS styles applied while postmounted. Defaults to no overrides.
+ Overrides <code>style</code> and the default <code>opacity: 0</code>{' '}
+ and <code>{"pointerEvents: 'none'"}</code>.
+ </p>
+ <p>
+ Premounting and postmounting apply in the Player and Studio, and are
+ disabled during rendering. The styles apply to the SVG element, or
+ the canvas when using <code>effects</code>.
+ </p>
<h3>Other props</h3>{' '}
<p>
All other props that can be passed to a <code>{'<path>'}</code> are
diff --git a/packages/docs/docs/absolute-fill.mdx b/packages/docs/docs/absolute-fill.mdx
index 9f53695169..fd652f1046 100644
--- a/packages/docs/docs/absolute-fill.mdx
+++ b/packages/docs/docs/absolute-fill.mdx
@@ -69,6 +69,24 @@ export const MyComp: React.FC = () => {
};
```
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
### `ref?`
You can add a [React ref](https://react.dev/learn/manipulating-the-dom-with-refs) to an `<AbsoluteFill>` from version `v3.2.13` on. If you use TypeScript, type it with `HTMLDivElement`:
diff --git a/packages/docs/docs/interactive.mdx b/packages/docs/docs/interactive.mdx
index d0b2ece848..567280a641 100644
--- a/packages/docs/docs/interactive.mdx
+++ b/packages/docs/docs/interactive.mdx
@@ -227,6 +227,24 @@ export const MyComp: React.FC = () => {
};
```
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
### `ref?`
You can add a [React ref](https://react.dev/learn/manipulating-the-dom-with-refs) to the rendered element.
diff --git a/packages/docs/docs/loop.mdx b/packages/docs/docs/loop.mdx
index 581fc97914..e56edb55e7 100644
--- a/packages/docs/docs/loop.mdx
+++ b/packages/docs/docs/loop.mdx
@@ -59,6 +59,24 @@ If you would like to disable layout side effects, pass `layout="none"`.
CSS styles to be applied to the container. If `layout` is set to `none`, there is no container and setting this style is not allowed.
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before it starts, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `times`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. These props require `layout="absolute-fill"` (the default).
+
## Examples
All the examples below are based on the following animation of a blue square:
diff --git a/packages/docs/docs/lottie/lottie-comp.mdx b/packages/docs/docs/lottie/lottie-comp.mdx
index 17de83b196..d4e0555d36 100644
--- a/packages/docs/docs/lottie/lottie-comp.mdx
+++ b/packages/docs/docs/lottie/lottie-comp.mdx
@@ -109,6 +109,52 @@ Set the Lottie [`assetsPath`](https://github.com/airbnb/lottie-web/wiki/loadAnim
In a Lottie JSON in the `assets` array, you can reference assets either externally or internally. If `e: 0`, the assets will be prefixed with `assetsPath` (ideal if you put the image into your `public` folder). If `e: 1`, the assets will be loaded from the absolute URL specified in the JSON.
+### `from?`<AvailableFrom v="4.0.528" />
+
+The frame at which the component becomes visible, relative to its parent. Defaults to `0`. See [`from`](/docs/sequence#from) on [`<Sequence>`](/docs/sequence).
+
+### `durationInFrames?`<AvailableFrom v="4.0.528" />
+
+How long the component stays visible. Defaults to `Infinity`, limited by its parent. See [`durationInFrames`](/docs/sequence#durationinframes) on [`<Sequence>`](/docs/sequence).
+
+### `trimBefore?`<AvailableFrom v="4.0.528" />
+
+Skips this many frames at the beginning of the content. Defaults to `0`. See [`trimBefore`](/docs/sequence#trimbefore) on [`<Sequence>`](/docs/sequence).
+
+### `freeze?`<AvailableFrom v="4.0.528" />
+
+Freezes the content at a local frame. Defaults to no freeze. See [`freeze`](/docs/sequence#freeze) on [`<Sequence>`](/docs/sequence).
+
+### `hidden?`<AvailableFrom v="4.0.528" />
+
+Hides the component and its children. Defaults to `false`. See [`hidden`](/docs/sequence#hidden) on [`<Sequence>`](/docs/sequence).
+
+### `name?`<AvailableFrom v="4.0.528" />
+
+The name shown in the Studio timeline. Defaults to `"<Lottie>"`. See [`name`](/docs/sequence#name) on [`<Sequence>`](/docs/sequence).
+
+### `showInTimeline?`<AvailableFrom v="4.0.528" />
+
+Whether to show the component in the Studio timeline. Defaults to `false`. See [`showInTimeline`](/docs/sequence#showintimeline) on [`<Sequence>`](/docs/sequence).
+
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## Compatibility
<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />
diff --git a/packages/docs/docs/mac-cursors/mac-os-cursor.mdx b/packages/docs/docs/mac-cursors/mac-os-cursor.mdx
index 550ef5f121..acc3ecdcb1 100644
--- a/packages/docs/docs/mac-cursors/mac-os-cursor.mdx
+++ b/packages/docs/docs/mac-cursors/mac-os-cursor.mdx
@@ -76,6 +76,24 @@ CSS styles for the cursor image. Use `left` and `top` to position it without cha
The component also accepts [`InteractiveBaseProps`](/docs/interactive#interactivebaseprops), including `durationInFrames`, `from`, `trimBefore`, `playbackRate`, `freeze`, `hidden`, `name`, and `showInTimeline`.
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## Compatibility
<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />
diff --git a/packages/docs/docs/player/premounting.mdx b/packages/docs/docs/player/premounting.mdx
index e1d5a95e13..9f8238922d 100644
--- a/packages/docs/docs/player/premounting.mdx
+++ b/packages/docs/docs/player/premounting.mdx
@@ -69,6 +69,37 @@ A premounted [`<Sequence>`](/docs/sequence) does carry the styles `opacity: 0` a
It is not possible to premount a [`<Sequence>`](/docs/sequence) with `layout="none"` because such a sequence does not have a container to apply the styles to.
+## Premounting visual components<AvailableFrom v="4.0.528" />
+
+You can pass `premountFor` directly to these components:
+
+- [`<AbsoluteFill>`](/docs/absolute-fill), [`Interactive` HTML and SVG components](/docs/interactive), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) and [`<Solid>`](/docs/solid).
+- [Shape components](/docs/shapes), [`<MacOSCursor>`](/docs/mac-cursors/mac-os-cursor) and [rough-notation components](/docs/rough-notation/api).
+- [`<Lottie>`](/docs/lottie/lottie), [`<RemotionRiveCanvas>`](/docs/rive/remotionrivecanvas), [`<ThreeCanvas>`](/docs/three-canvas) and [`<ThreeWebGPUCanvas>`](/docs/three-webgpu-canvas).
+
+These components keep their existing layout while premounted, with `opacity: 0` and `pointerEvents: 'none'`. They do not add a wrapper element. Their local frame stays at the first frame until `from` is reached.
+
+```tsx twoslash title="PremountedScene.tsx"
+import {AbsoluteFill, Img, staticFile} from 'remotion';
+
+export const PremountedScene: React.FC = () => {
+ return (
+ <AbsoluteFill from={60} durationInFrames={90} premountFor={30} postmountFor={15}>
+ <Img src={staticFile('background.png')} />
+ </AbsoluteFill>
+ );
+};
+```
+
+This scene mounts at frame 30, is visible from frame 60 through 149, and stays mounted but hidden from frame 150 through 164. During postmounting, its local frame is frozen at the last frame. It unmounts at frame 165.
+
+`premountFor` defaults to `0` in v4 and `fps` (1 second) in v5. `postmountFor` defaults to `0` and needs a finite `durationInFrames`.
+Use `styleWhilePremounted` and `styleWhilePostmounted` to override styles during these ranges, including the default hiding styles.
+
+Premounting and postmounting only apply in the Player and Studio, not during rendering. A parent must also be mounted for its children to premount; set `premountFor` on the outer timed component when preparing a whole scene.
+
+[`<Img>`](/docs/img), [`<AnimatedImage>`](/docs/animatedimage) and [`<Gif>`](/docs/gif/gif) also support direct premounting. See their API pages for availability and behavior.
+
## With `<Series>` and `<TransitionSeries>`
`premountFor` is also available on [`<Series.Sequence>`](/docs/series) and [`<TransitionSeries.Sequence>`](/docs/transitions/transitionseries).
diff --git a/packages/docs/docs/remotion/html-in-canvas.mdx b/packages/docs/docs/remotion/html-in-canvas.mdx
index 8a239b0fc4..562b1a0e9c 100644
--- a/packages/docs/docs/remotion/html-in-canvas.mdx
+++ b/packages/docs/docs/remotion/html-in-canvas.mdx
@@ -157,6 +157,24 @@ Inherited from [`<Sequence>`](/docs/sequence#trimbefore).
Inherited from [`<Sequence>`](/docs/sequence#playbackrate).
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
### `ref?`
You can add a [React ref](https://react.dev/learn/manipulating-the-dom-with-refs) to `<HtmlInCanvas />`.
diff --git a/packages/docs/docs/rive/remotionrivecanvas.mdx b/packages/docs/docs/rive/remotionrivecanvas.mdx
index e8e8e64c5b..99e4ff8e4e 100644
--- a/packages/docs/docs/rive/remotionrivecanvas.mdx
+++ b/packages/docs/docs/rive/remotionrivecanvas.mdx
@@ -222,6 +222,24 @@ function App() {
}
```
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## Compatibility
<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />
diff --git a/packages/docs/docs/rough-notation/index.mdx b/packages/docs/docs/rough-notation/index.mdx
index a9c1583f64..a82698fe44 100644
--- a/packages/docs/docs/rough-notation/index.mdx
+++ b/packages/docs/docs/rough-notation/index.mdx
@@ -67,6 +67,24 @@ Preserves vertices when roughening a shape. Default: `false`.
The components are interactive in Remotion Studio. They support editable text and font controls, as well as the following [`<Sequence>`](/docs/sequence) props: `durationInFrames`, `from`, `trimBefore`, `playbackRate`, `freeze`, `hidden`, `name` and `showInTimeline`.
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## License
MIT
diff --git a/packages/docs/docs/solid.mdx b/packages/docs/docs/solid.mdx
index 871e8cd600..83078d635b 100644
--- a/packages/docs/docs/solid.mdx
+++ b/packages/docs/docs/solid.mdx
@@ -109,6 +109,24 @@ const MyComp = () => {
This is mainly a component for adding [effects](/docs/effects/api) to a solid color.
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## Compatibility
<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers/>
diff --git a/packages/docs/docs/three-canvas.mdx b/packages/docs/docs/three-canvas.mdx
index e01ca22dc9..e790bb52a3 100644
--- a/packages/docs/docs/three-canvas.mdx
+++ b/packages/docs/docs/three-canvas.mdx
@@ -48,6 +48,58 @@ const ThreeBasic: React.FC = () => {
export default ThreeBasic;
```
+## Props
+
+### `from?`<AvailableFrom v="4.0.528" />
+
+The frame at which the component becomes visible, relative to its parent. Defaults to `0`. See [`from`](/docs/sequence#from) on [`<Sequence>`](/docs/sequence).
+
+### `durationInFrames?`<AvailableFrom v="4.0.528" />
+
+How long the component stays visible. Defaults to `Infinity`, limited by its parent. See [`durationInFrames`](/docs/sequence#durationinframes) on [`<Sequence>`](/docs/sequence).
+
+### `trimBefore?`<AvailableFrom v="4.0.528" />
+
+Skips this many frames at the beginning of the content. Defaults to `0`. See [`trimBefore`](/docs/sequence#trimbefore) on [`<Sequence>`](/docs/sequence).
+
+### `freeze?`<AvailableFrom v="4.0.528" />
+
+Freezes the content at a local frame. Defaults to no freeze. See [`freeze`](/docs/sequence#freeze) on [`<Sequence>`](/docs/sequence).
+
+### `hidden?`<AvailableFrom v="4.0.528" />
+
+Hides the component and its children. Defaults to `false`. See [`hidden`](/docs/sequence#hidden) on [`<Sequence>`](/docs/sequence).
+
+### `name?`<AvailableFrom v="4.0.528" />
+
+The name shown in the Studio timeline. Defaults to `"<ThreeCanvas>"`. See [`name`](/docs/sequence#name) on [`<Sequence>`](/docs/sequence).
+
+### `showInTimeline?`<AvailableFrom v="4.0.528" />
+
+Whether to show the component in the Studio timeline. Defaults to `false`. See [`showInTimeline`](/docs/sequence#showintimeline) on [`<Sequence>`](/docs/sequence).
+
+### `playbackRate?`<AvailableFrom v="4.0.528" />
+
+Changes the speed of the content. Defaults to `1`. See [`playbackRate`](/docs/sequence#playbackrate) on [`<Sequence>`](/docs/sequence).
+
+### `premountFor?`<AvailableFrom v="4.0.528" />
+
+Mounts the component before its `from` frame, keeping it transparent and frozen at its first frame so assets can load. The value is a number of frames. Defaults to `0` in v4 and `fps` (1 second) in v5. See [premounting](/docs/player/premounting).
+
+### `postmountFor?`<AvailableFrom v="4.0.528" />
+
+Keeps the component mounted after its duration ends, transparent and frozen at its last frame. Defaults to `0` frames. Requires a finite `durationInFrames`.
+
+### `styleWhilePremounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while premounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+### `styleWhilePostmounted?`<AvailableFrom v="4.0.528" />
+
+CSS styles applied while postmounted. Defaults to no overrides. These styles override `style` and the default `opacity: 0` and `pointerEvents: 'none'`.
+
+Premounting and postmounting apply in the [Player](/docs/player) and [Studio](/docs/studio), and are disabled during rendering. They do not add a wrapper element.
+
## `frameloop` behavior during rendering
During rendering, `<ThreeCanvas>` overrides the `frameloop` prop to `'never'` regardless of what you pass. This means the Three.js scene will not re-render on its own β€” it is only re-rendered on demand via `advance()`.
diff --git a/packages/docs/docs/three-webgpu-canvas.mdx b/packages/docs/docs/three-webgpu-canvas.mdx
index 1d7a9341ac..95bee6b576 100644
--- a/packages/docs/docs/three-webgpu-canvas.mdx
+++ b/packages/docs/docs/three-webgpu-canvas.mdx
@@ -87,6 +87,8 @@ Use [`npx remotion gpu`](/docs/cli/gpu) to inspect GPU support.
`<ThreeWebGPUCanvas>` accepts the props of [`<ThreeCanvas>`](/docs/three-canvas), except for `gl`. The renderer is initialized by `<ThreeWebGPUCanvas>`.
+From <AvailableFrom v="4.0.528" inline />, this includes [`premountFor`](/docs/three-canvas#premountfor), [`postmountFor`](/docs/three-canvas#postmountfor), [`styleWhilePremounted`](/docs/three-canvas#stylewhilepremounted) and [`styleWhilePostmounted`](/docs/three-canvas#stylewhilepostmounted).
+
## Compatibility
<CompatibilityTable chrome="WebGPU / WebGL 2" firefox="WebGPU / WebGL 2" safari="WebGPU / WebGL 2" nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />