Skip to content

🎥 Make videos programmatically with React

[docs]: moved TableOfContents components to new locations and updated imports

copilot-swe-agent[bot]0b739601e0cf
diff --git a/packages/docs/components/TableOfContents/api.tsx b/packages/docs/components/TableOfContents/api.tsx
index ccad175a52..a845aaa543 100644
--- a/packages/docs/components/TableOfContents/api.tsx
+++ b/packages/docs/components/TableOfContents/api.tsx
@@ -17,22 +17,22 @@ import {TableOfContents as TailwindTableOfContents} from '../../docs/tailwind/Ta
import {TableOfContents as ThreeTableOfContents} from '../../docs/three/TableOfContents';
import {TableOfContents as WebcodecsTableOfContents} from '../../docs/webcodecs/TableOfContents';
import {ZodTypesTableOfContents} from '../../docs/zod-types/TableOfContents';
-import {TableOfContents as AnimationUtilsTableOfContents} from '../TableOfContents/animation-utils';
-import {TableOfContents as BundlerTableOfContents} from '../TableOfContents/bundler';
-import {TableOfContents as CloudrunTableOfContents} from '../TableOfContents/cloudrun';
-import {TableOfContents as GifTableOfContents} from '../TableOfContents/gif';
-import {TableOfContents as LambdaTableOfContents} from '../TableOfContents/lambda';
-import {TableOfContents as LayoutUtilsTableOfContents} from '../TableOfContents/LayoutUtils';
-import {TableOfContents as LottieTableOfContents} from '../TableOfContents/lottie';
-import {TableOfContents as MediaUtilsTableOfContents} from '../TableOfContents/media-utils';
-import {TableOfContents as MotionBlurTableOfContents} from '../TableOfContents/motion-blur';
-import {TableOfContents as NoiseTableOfContents} from '../TableOfContents/noise';
-import {TableOfContents as PathsTableOfContents} from '../TableOfContents/paths';
-import {TableOfContents as PreloadTableOfContents} from '../TableOfContents/preload';
-import {TableOfContents as RemotionTableOfContents} from '../TableOfContents/remotion';
-import {TableOfContents as RiveTableOfContents} from '../TableOfContents/rive';
-import {TableOfContents as ShapesTableOfContents} from '../TableOfContents/shapes';
-import {TableOfContents as TransitionsTableOfContents} from '../TableOfContents/transitions';
+import {TableOfContents as AnimationUtilsTableOfContents} from '../../docs/animation-utils/table-of-contents';
+import {TableOfContents as BundlerTableOfContents} from '../../docs/bundler/table-of-contents';
+import {TableOfContents as CloudrunTableOfContents} from '../../docs/cloudrun/table-of-contents';
+import {TableOfContents as GifTableOfContents} from '../../docs/gif/table-of-contents';
+import {TableOfContents as LambdaTableOfContents} from '../../docs/lambda/table-of-contents';
+import {TableOfContents as LayoutUtilsTableOfContents} from '../../docs/layout-utils/table-of-contents';
+import {TableOfContents as LottieTableOfContents} from '../../docs/lottie/table-of-contents';
+import {TableOfContents as MediaUtilsTableOfContents} from '../../docs/media-utils/table-of-contents';
+import {TableOfContents as MotionBlurTableOfContents} from '../../docs/motion-blur/table-of-contents';
+import {TableOfContents as NoiseTableOfContents} from '../../docs/noise/table-of-contents';
+import {TableOfContents as PathsTableOfContents} from '../../docs/paths/table-of-contents';
+import {TableOfContents as PreloadTableOfContents} from '../../docs/preload/table-of-contents';
+import {TableOfContents as RemotionTableOfContents} from '../../docs/remotion/table-of-contents';
+import {TableOfContents as RiveTableOfContents} from '../../docs/rive/table-of-contents';
+import {TableOfContents as ShapesTableOfContents} from '../../docs/shapes/table-of-contents';
+import {TableOfContents as TransitionsTableOfContents} from '../../docs/transitions/table-of-contents';
import {Grid} from './Grid';
import {TOCItem} from './TOCItem';
diff --git a/packages/docs/docs/animation-utils/index.mdx b/packages/docs/docs/animation-utils/index.mdx
index 73a0f54367..74a71b17bc 100644
--- a/packages/docs/docs/animation-utils/index.mdx
+++ b/packages/docs/docs/animation-utils/index.mdx
@@ -9,7 +9,7 @@ Functions that support you in animating CSS styles.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import {TableOfContents} from '../../components/TableOfContents/animation-utils';
+import {TableOfContents} from '../../animation-utils/table-of-contents';
<Tabs
defaultValue="npm"
diff --git a/packages/docs/docs/animation-utils/index.mdx.bak b/packages/docs/docs/animation-utils/index.mdx.bak
new file mode 100644
index 0000000000..73a0f54367
--- /dev/null
+++ b/packages/docs/docs/animation-utils/index.mdx.bak
@@ -0,0 +1,53 @@
+---
+image: /generated/articles-docs-animation-utils-index.png
+title: "@remotion/animation-utils"
+---
+
+_Available from v4.0.92_
+
+Functions that support you in animating CSS styles.
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import {TableOfContents} from '../../components/TableOfContents/animation-utils';
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/animation-utils
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/animation-utils
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add @remotion/animation-utils
+```
+
+ </TabItem>
+</Tabs>
+
+## Functions
+
+<TableOfContents/>
+
+## License
+
+MIT
diff --git a/packages/docs/docs/animation-utils/table-of-contents.tsx b/packages/docs/docs/animation-utils/table-of-contents.tsx
new file mode 100644
index 0000000000..8d6082fbd1
--- /dev/null
+++ b/packages/docs/docs/animation-utils/table-of-contents.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/animation-utils/make-transform">
+ <strong>makeTransform()</strong>
+ <div>
+ Create a value for the CSS <code>transform</code> property
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/animation-utils/interpolate-styles">
+ <strong>interpolateStyles()</strong>
+ <div>
+ Map a range of values to CSS <code>style</code> values
+ </div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/api.mdx.bak b/packages/docs/docs/api.mdx.bak
new file mode 100644
index 0000000000..f3044678db
--- /dev/null
+++ b/packages/docs/docs/api.mdx.bak
@@ -0,0 +1,8 @@
+---
+image: /generated/articles-docs-api.png
+title: API overview
+---
+
+import { TableOfContents } from "../components/TableOfContents/api";
+
+<TableOfContents />
diff --git a/packages/docs/docs/bundler.mdx b/packages/docs/docs/bundler.mdx
index 6cb0b5abce..4de6a42801 100644
--- a/packages/docs/docs/bundler.mdx
+++ b/packages/docs/docs/bundler.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-bundler.png
title: "@remotion/bundler"
---
-import {TableOfContents} from '../components/TableOfContents/bundler';
+import {TableOfContents} from '../bundler/table-of-contents';
A package containing the [`bundle()`](/docs/bundle) function, which takes a Remotion project and bundles it using Webpack, preparing it to be used by server-side rendering functions such as [`getCompositions()`](/docs/renderer/get-compositions) and [`renderMedia()`](/docs/renderer/render-media)
diff --git a/packages/docs/docs/bundler.mdx.bak b/packages/docs/docs/bundler.mdx.bak
new file mode 100644
index 0000000000..6cb0b5abce
--- /dev/null
+++ b/packages/docs/docs/bundler.mdx.bak
@@ -0,0 +1,20 @@
+---
+image: /generated/articles-docs-bundler.png
+title: "@remotion/bundler"
+---
+
+import {TableOfContents} from '../components/TableOfContents/bundler';
+
+A package containing the [`bundle()`](/docs/bundle) function, which takes a Remotion project and bundles it using Webpack, preparing it to be used by server-side rendering functions such as [`getCompositions()`](/docs/renderer/get-compositions) and [`renderMedia()`](/docs/renderer/render-media)
+
+## Installation
+
+<Installation pkg="@remotion/bundler"/>
+
+## API
+
+<TableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/bundler/table-of-contents.tsx b/packages/docs/docs/bundler/table-of-contents.tsx
new file mode 100644
index 0000000000..197d91b053
--- /dev/null
+++ b/packages/docs/docs/bundler/table-of-contents.tsx
@@ -0,0 +1,16 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/bundle">
+ <strong>{"bundle()"}</strong>
+ <div>Create a Webpack bundle</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/cli/browser/index.mdx b/packages/docs/docs/cli/browser/index.mdx
index 64bd9cc557..f2ed162601 100644
--- a/packages/docs/docs/cli/browser/index.mdx
+++ b/packages/docs/docs/cli/browser/index.mdx
@@ -5,7 +5,7 @@ crumb: "@remotion/cli"
sidebar_label: "browser"
---
-import { TableOfContents } from "../../../components/TableOfContents/cli/browser";
+import { TableOfContents } from "./table-of-contents";
# npx remotion browser<AvailableFrom v="4.0.137"/>
diff --git a/packages/docs/docs/cli/browser/index.mdx.bak b/packages/docs/docs/cli/browser/index.mdx.bak
new file mode 100644
index 0000000000..64bd9cc557
--- /dev/null
+++ b/packages/docs/docs/cli/browser/index.mdx.bak
@@ -0,0 +1,21 @@
+---
+image: /generated/articles-docs-cli-browser-index.png
+title: npx remotion browser
+crumb: "@remotion/cli"
+sidebar_label: "browser"
+---
+
+import { TableOfContents } from "../../../components/TableOfContents/cli/browser";
+
+# npx remotion browser<AvailableFrom v="4.0.137"/>
+
+Commands for managing the browser used by Remotion.
+
+## Commands
+
+<TableOfContents />
+
+## See also
+
+- [Chrome Headless Shell](/docs/miscellaneous/chrome-headless-shell)
+- [`ensureBrowser()`](/docs/renderer/ensure-browser)
diff --git a/packages/docs/docs/cli/browser/table-of-contents.tsx b/packages/docs/docs/cli/browser/table-of-contents.tsx
new file mode 100644
index 0000000000..59fd4770e1
--- /dev/null
+++ b/packages/docs/docs/cli/browser/table-of-contents.tsx
@@ -0,0 +1,16 @@
+import React from "react";
+import { Grid } from "../../../components/TableOfContents/Grid";
+import { TOCItem } from "../../../components/TableOfContents/TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/cli/browser/ensure">
+ <strong>browser ensure</strong>
+ <div>Ensure Remotion has a browser to render</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/packages/docs/docs/cli/cli.mdx b/packages/docs/docs/cli/cli.mdx
index 1482cf50ab..d88988e248 100644
--- a/packages/docs/docs/cli/cli.mdx
+++ b/packages/docs/docs/cli/cli.mdx
@@ -5,7 +5,7 @@ sidebar_label: CLI reference
id: cli
---
-import {TableOfContents} from '../../components/TableOfContents/cli';
+import {TableOfContents} from '../../cli/table-of-contents';
## How to use
diff --git a/packages/docs/docs/cli/cli.mdx.bak b/packages/docs/docs/cli/cli.mdx.bak
new file mode 100644
index 0000000000..1482cf50ab
--- /dev/null
+++ b/packages/docs/docs/cli/cli.mdx.bak
@@ -0,0 +1,73 @@
+---
+image: /generated/articles-docs-cli-cli.png
+title: Command line reference
+sidebar_label: CLI reference
+id: cli
+---
+
+import {TableOfContents} from '../../components/TableOfContents/cli';
+
+## How to use
+
+You can run the CLI by installing `@remotion/cli` and running:
+
+- `npx remotion` inside a npm project
+- `yarn remotion` inside a Yarn project
+- `pnpm exec remotion` inside a pnpm project.
+- `bunx remotion` inside a Bun project
+
+For brevity, in the documentation we always say `npx remotion`.
+
+Inside an npm script, you don't need the `npx` prefix:
+
+```json title="package.json"
+{
+ "scripts": {
+ "render": "remotion render"
+ }
+}
+```
+
+### Using Bun<AvailableFrom v="4.0.118" />
+
+By default, the `npx remotion` command is being executed using Node.
+Even `bunx remotion` is using Node, unless you add the `--bun` flag.
+To use Bun, replace `remotion` with `remotionb`.
+
+```json title="package.json"
+{
+ "scripts": {
+ "render": "remotionb render"
+ }
+}
+```
+
+### Using Deno<AvailableFrom v="4.0.227" />
+
+Deno is not supported by Remotion.
+If you like to experiment nonetheless, use `npx remotiond` to run the Deno version of the CLI.
+
+```json title="package.json"
+{
+ "scripts": {
+ "render": "remotiond render"
+ }
+}
+```
+
+## Commands
+
+The following commands are available - you can always run them using `npx remotion` or even without the `npx` prefix if you put the command inside an npm script.
+
+<TableOfContents />
+
+## Example command
+
+```
+npx remotion render --codec=vp8 HelloWorld out/video.webm
+```
+
+## See also
+
+- [Render your video](/docs/render)
+- [Configuration file](/docs/config)
diff --git a/packages/docs/docs/cli/table-of-contents.tsx b/packages/docs/docs/cli/table-of-contents.tsx
new file mode 100644
index 0000000000..c7f462170e
--- /dev/null
+++ b/packages/docs/docs/cli/table-of-contents.tsx
@@ -0,0 +1,76 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/cli/studio">
+ <strong>studio</strong>
+ <div>Start the Remotion Studio</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/render">
+ <strong>render</strong>
+ <div>Render video or audio</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/still">
+ <strong>still</strong>
+ <div>Render a still image</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/compositions">
+ <strong>compositions</strong>
+ <div>List available compositions</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/cli">
+ <strong>lambda</strong>
+ <div>Control Remotion Lambda</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/bundle">
+ <strong>bundle</strong>
+ <div>Create a Remotion Bundle</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/browser">
+ <strong>browser</strong>
+ <div>Ensure Remotion has a browser to use</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/cli">
+ <strong>cloudrun</strong>
+ <div>Control Remotion Cloud Run</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/benchmark">
+ <strong>benchmark</strong>
+ <div>Measure and optimize render time</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/versions">
+ <strong>versions</strong>
+ <div>List and validate Remotion package versions</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/upgrade">
+ <strong>upgrade</strong>
+ <div>Upgrade to a newer version</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/gpu">
+ <strong>gpu</strong>
+ <div>Print information about {"Chrome's"} usage of the GPU</div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/ffmpeg">
+ <strong>ffmpeg</strong>
+ <div>
+ Execute an <code>ffmpeg</code> command
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/ffprobe">
+ <strong>ffprobe</strong>
+ <div>
+ Execute an <code>ffprobe</code> command
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/cli/help">
+ <strong>help</strong>
+ <div>Show CLI commands</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/cloudrun/api.mdx b/packages/docs/docs/cloudrun/api.mdx
index 4ebf454030..a4bb07ee01 100644
--- a/packages/docs/docs/cloudrun/api.mdx
+++ b/packages/docs/docs/cloudrun/api.mdx
@@ -10,7 +10,7 @@ crumb: 'Render videos without servers on GCP'
</p>
</ExperimentalBadge>
-import {TableOfContents} from '../../components/TableOfContents/cloudrun';
+import {TableOfContents} from '../../cloudrun/table-of-contents';
<Installation pkg="@remotion/cloudrun" />
<br />
diff --git a/packages/docs/docs/cloudrun/api.mdx.bak b/packages/docs/docs/cloudrun/api.mdx.bak
new file mode 100644
index 0000000000..4ebf454030
--- /dev/null
+++ b/packages/docs/docs/cloudrun/api.mdx.bak
@@ -0,0 +1,28 @@
+---
+image: /generated/articles-docs-cloudrun-api.png
+title: '@remotion/cloudrun'
+crumb: 'Render videos without servers on GCP'
+---
+
+<ExperimentalBadge>
+ <p>
+ Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.</a>
+ </p>
+</ExperimentalBadge>
+
+import {TableOfContents} from '../../components/TableOfContents/cloudrun';
+
+<Installation pkg="@remotion/cloudrun" />
+<br />
+
+**See the [setup guide](/docs/cloudrun/setup) for complete instructions on how to get started.**
+
+## APIs
+
+The following Node.JS are available:
+
+<TableOfContents />
+
+## CLI
+
+See [here](/docs/cloudrun/cli) for a list of CLI commands.
diff --git a/packages/docs/docs/cloudrun/table-of-contents.tsx b/packages/docs/docs/cloudrun/table-of-contents.tsx
new file mode 100644
index 0000000000..00e8049a3c
--- /dev/null
+++ b/packages/docs/docs/cloudrun/table-of-contents.tsx
@@ -0,0 +1,64 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/cloudrun/getserviceinfo">
+ <strong>getServiceInfo()</strong>
+ <div>Gets information about a service</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/deployservice">
+ <strong>deployService()</strong>
+ <div>Create a new service in GCP Cloud Run</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/deleteservice">
+ <strong>deleteService()</strong>
+ <div>Delete a service in GCP Cloud Run</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/getservices">
+ <strong>getServices()</strong>
+ <div>Lists available Remotion Cloud Run services</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/speculateservicename">
+ <strong>speculateServiceName()</strong>
+ <div>Speculate a service name based on its configuration</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/getregions">
+ <strong>getRegions()</strong>
+ <div>Get all available regions</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/deploysite">
+ <strong>deploySite()</strong>
+ <div>Bundle and upload a site to Cloud Storage</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/deletesite">
+ <strong>deleteSite()</strong>
+ <div>Delete a bundle from Cloud Storage</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/getsites">
+ <strong>getSites()</strong>
+ <div>Get all available sites from Cloud Storage</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/getorcreatebucket">
+ <strong>getOrCreateBucket()</strong>
+ <div>Ensure a Remotion Cloud Storage bucket exists</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/rendermediaoncloudrun">
+ <strong>renderMediaOnCloudrun()</strong>
+ <div>Trigger a video or audio render</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/renderstilloncloudrun">
+ <strong>renderStillOnCloudrun()</strong>
+ <div>Trigger a still render</div>
+ </TOCItem>
+ <TOCItem link="/docs/cloudrun/testpermissions">
+ <strong>testPermissions()</strong>
+ <div>Ensure permissions are correctly set up in GCP</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/gif/index.mdx b/packages/docs/docs/gif/index.mdx
index b03c6ae933..521c184daa 100644
--- a/packages/docs/docs/gif/index.mdx
+++ b/packages/docs/docs/gif/index.mdx
@@ -4,7 +4,7 @@ sidebar_label: "@remotion/gif"
title: "@remotion/gif"
---
-import {TableOfContents} from '../../components/TableOfContents/gif';
+import {TableOfContents} from '../../gif/table-of-contents';
You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions [`useCurrentFrame()`](/docs/use-current-frame).
diff --git a/packages/docs/docs/gif/index.mdx.bak b/packages/docs/docs/gif/index.mdx.bak
new file mode 100644
index 0000000000..b03c6ae933
--- /dev/null
+++ b/packages/docs/docs/gif/index.mdx.bak
@@ -0,0 +1,17 @@
+---
+image: /generated/articles-docs-gif-index.png
+sidebar_label: "@remotion/gif"
+title: "@remotion/gif"
+---
+
+import {TableOfContents} from '../../components/TableOfContents/gif';
+
+You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions [`useCurrentFrame()`](/docs/use-current-frame).
+
+<Installation pkg="@remotion/gif"/>
+
+## APIs
+
+The following APIs are available:
+
+<TableOfContents />
diff --git a/packages/docs/docs/gif/table-of-contents.tsx b/packages/docs/docs/gif/table-of-contents.tsx
new file mode 100644
index 0000000000..0f2b447d74
--- /dev/null
+++ b/packages/docs/docs/gif/table-of-contents.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/gif/gif">
+ <strong>{"<Gif>"}</strong>
+ <div>Render a GIF</div>
+ </TOCItem>
+ <TOCItem link="/docs/gif/get-gif-duration-in-seconds">
+ <strong>getGifDurationInSeconds()</strong>
+ <div>Get the runtime of a GIF</div>
+ </TOCItem>
+ <TOCItem link="/docs/gif/preload-gif">
+ <strong>preloadGif()</strong>
+ <div>Prepare a GIF for displaying in the Player</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/lambda/api.mdx b/packages/docs/docs/lambda/api.mdx
index ff5b32348b..e8331b6d42 100644
--- a/packages/docs/docs/lambda/api.mdx
+++ b/packages/docs/docs/lambda/api.mdx
@@ -4,7 +4,7 @@ title: "@remotion/lambda"
crumb: "Render videos without servers on AWS"
---
-import {TableOfContents} from '../../components/TableOfContents/lambda';
+import {TableOfContents} from '../../lambda/table-of-contents';
<Installation pkg="@remotion/lambda"/>
<br/>
diff --git a/packages/docs/docs/lambda/api.mdx.bak b/packages/docs/docs/lambda/api.mdx.bak
new file mode 100644
index 0000000000..ff5b32348b
--- /dev/null
+++ b/packages/docs/docs/lambda/api.mdx.bak
@@ -0,0 +1,22 @@
+---
+image: /generated/articles-docs-lambda-api.png
+title: "@remotion/lambda"
+crumb: "Render videos without servers on AWS"
+---
+
+import {TableOfContents} from '../../components/TableOfContents/lambda';
+
+<Installation pkg="@remotion/lambda"/>
+<br/>
+
+**See the [setup guide](/docs/lambda/setup) for complete instructions on how to get started.**
+
+## APIs
+
+The following Node.JS are available:
+
+<TableOfContents />
+
+## CLI
+
+See [here](/docs/lambda/cli) for a list of CLI commands.
diff --git a/packages/docs/docs/lambda/table-of-contents.tsx b/packages/docs/docs/lambda/table-of-contents.tsx
new file mode 100644
index 0000000000..eff8aa1395
--- /dev/null
+++ b/packages/docs/docs/lambda/table-of-contents.tsx
@@ -0,0 +1,118 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/lambda/estimateprice">
+ <strong>estimatePrice()</strong>
+ <div>Estimate the price of a render</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/deployfunction">
+ <strong>deployFunction()</strong>
+ <div>Create a new function in AWS Lambda</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/deletefunction">
+ <strong>deleteFunction()</strong>
+ <div>Delete a function in AWS Lambda</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getfunctioninfo">
+ <strong>getFunctionInfo()</strong>
+ <div>Gets information about a function</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getfunctions">
+ <strong>getFunctions()</strong>
+ <div>Lists available Remotion Lambda functions</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getcompositionsonlambda">
+ <strong>getCompositionsOnLambda()</strong>
+ <div>Gets list of compositions inside a Lambda function</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/deletesite">
+ <strong>deleteSite()</strong>
+ <div>Delete a bundle from S3</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/deploysite">
+ <strong>deploySite()</strong>
+ <div>Bundle and upload a site to S3</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getawsclient">
+ <strong>getAwsClient()</strong>
+ <div>Access the AWS SDK directly</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getregions">
+ <strong>getRegions()</strong>
+ <div>Get all available regions</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getsites">
+ <strong>getSites()</strong>
+ <div>Get all available sites</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/downloadmedia">
+ <strong>downloadMedia()</strong>
+ <div>Download a render artifact from S3</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getuserpolicy">
+ <strong>getUserPolicy()</strong>
+ <div>Get the policy JSON for your AWS user</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getrolepolicy">
+ <strong>getRolePolicy()</strong>
+ <div>Get the policy JSON for your AWS role</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getorcreatebucket">
+ <strong>getOrCreateBucket()</strong>
+ <div>Ensure a Remotion S3 bucket exists</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/getrenderprogress">
+ <strong>getRenderProgress()</strong>
+ <div>Query the progress of a render</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/presignurl">
+ <strong>presignUrl()</strong>
+ <div>Make a private file public to those with the link</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/rendermediaonlambda">
+ <strong>renderMediaOnLambda()</strong>
+ <div>Trigger a video or audio render</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/renderstillonlambda">
+ <strong>renderStillOnLambda()</strong>
+ <div>Trigger a still render</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/simulatepermissions">
+ <strong>simulatePermissions()</strong>
+ <div>Ensure permissions are correctly set up</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/speculatefunctionname">
+ <strong>speculateFunctionName()</strong>
+ <div>Get the lambda function name based on its configuration</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/validatewebhooksignature">
+ <strong>validateWebhookSignature()</strong>
+ <div>Validate an incoming webhook request is authentic</div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/approuterwebhook">
+ <strong>appRouterWebhook()</strong>
+ <div>
+ Handle incoming webhooks specifically for the Next.js app router
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/pagesrouterwebhook">
+ <strong>pagesRouterWebhook()</strong>
+ <div>
+ Handle incoming webhooks specifically for the Next.js pages router
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/lambda/expresswebhook">
+ <strong>expressWebhook()</strong>
+ <div>
+ Handle incoming webhooks specifically for Express.js
+ </div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/layout-utils/index.mdx b/packages/docs/docs/layout-utils/index.mdx
index 374c8b4a41..473127dc46 100644
--- a/packages/docs/docs/layout-utils/index.mdx
+++ b/packages/docs/docs/layout-utils/index.mdx
@@ -9,7 +9,7 @@ Utility functions for creating dynamic layouts.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import {TableOfContents} from '../../components/TableOfContents/LayoutUtils';
+import {TableOfContents} from '../../layout-utils/table-of-contents';
<Tabs
defaultValue="npm"
diff --git a/packages/docs/docs/layout-utils/index.mdx.bak b/packages/docs/docs/layout-utils/index.mdx.bak
new file mode 100644
index 0000000000..374c8b4a41
--- /dev/null
+++ b/packages/docs/docs/layout-utils/index.mdx.bak
@@ -0,0 +1,53 @@
+---
+image: /generated/articles-docs-layout-utils-index.png
+title: "@remotion/layout-utils"
+---
+
+_Available from v4.0.50_
+
+Utility functions for creating dynamic layouts.
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import {TableOfContents} from '../../components/TableOfContents/LayoutUtils';
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/layout-utils
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/layout-utils
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add @remotion/layout-utils
+```
+
+ </TabItem>
+</Tabs>
+
+## Functions
+
+<TableOfContents/>
+
+## License
+
+MIT
diff --git a/packages/docs/docs/layout-utils/table-of-contents.tsx b/packages/docs/docs/layout-utils/table-of-contents.tsx
new file mode 100644
index 0000000000..0064e2f026
--- /dev/null
+++ b/packages/docs/docs/layout-utils/table-of-contents.tsx
@@ -0,0 +1,28 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/layout-utils/measure-text">
+ <strong>measureText()</strong>
+ <div>Get dimensions of text</div>
+ </TOCItem>
+ <TOCItem link="/docs/layout-utils/fill-text-box">
+ <strong>fillTextBox()</strong>
+ <div>Find line breaks and overflows in a text box</div>
+ </TOCItem>
+ <TOCItem link="/docs/layout-utils/fit-text">
+ <strong>fitText()</strong>
+ <div>Get font size to fit text in a box</div>
+ </TOCItem>
+ <TOCItem link="/docs/layout-utils/fit-text-on-n-lines">
+ <strong>fitTextOnNLines()</strong>
+ <div>Get font size to fit text on n lines</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/lottie/index.mdx b/packages/docs/docs/lottie/index.mdx
index ea3b94637c..176e316968 100644
--- a/packages/docs/docs/lottie/index.mdx
+++ b/packages/docs/docs/lottie/index.mdx
@@ -7,7 +7,7 @@ title: "@remotion/lottie"
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import {TableOfContents} from "../../components/TableOfContents/lottie"
+import {TableOfContents} from "../../lottie/table-of-contents"
This package provides a component for displaying [Lottie](http://airbnb.io/lottie/) animations in Remotion.
diff --git a/packages/docs/docs/lottie/index.mdx.bak b/packages/docs/docs/lottie/index.mdx.bak
new file mode 100644
index 0000000000..ea3b94637c
--- /dev/null
+++ b/packages/docs/docs/lottie/index.mdx.bak
@@ -0,0 +1,77 @@
+---
+image: /generated/articles-docs-lottie-index.png
+id: lottie-index
+sidebar_label: Overview
+title: "@remotion/lottie"
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import {TableOfContents} from "../../components/TableOfContents/lottie"
+
+This package provides a component for displaying [Lottie](http://airbnb.io/lottie/) animations in Remotion.
+
+## Installation
+
+Install, `@remotion/lottie` as well as `lottie-web`.
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'yarn', value: 'yarn', },
+{ label: 'pnpm', value: 'pnpm', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/lottie lottie-web
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add @remotion/lottie lottie-web
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/lottie lottie-web
+```
+
+ </TabItem>
+</Tabs>
+
+You can now start using the [`<Lottie>`](/docs/lottie/lottie) component in your Remotion project.
+
+## Supported features
+
+- Playing Lottie animations using `lottie-web`
+- Change the speed of the animation
+- Playing animation forwards and backwards
+- Playing remote files
+- Determining dimensions and duration of a Lottie animation
+
+## Unsupported features
+
+- Rendering on other renderers as `svg`
+- `setSubFrame()`, `setLocationHref()`
+- Limited expression support: Remotion uses the `.goToAndStop()` method from `lottie-web` to seek through the Lottie file. Depending on the expression, the frame might not render deterministally, leading to [flickering](/docs/flickering) in the Remotion output. Remotion cannot fix this without a change in `lottie-web` upstream. You need to evaluate on a case-by-case basis whether the expression you are using is supported by Remotion.
+
+:::note
+[Open an issue](https://remotion.dev/issue) if you want to request a currently unsupported feature.
+:::
+
+## Table of contents
+
+<TableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/lottie/table-of-contents.tsx b/packages/docs/docs/lottie/table-of-contents.tsx
new file mode 100644
index 0000000000..9f2e9ac89e
--- /dev/null
+++ b/packages/docs/docs/lottie/table-of-contents.tsx
@@ -0,0 +1,36 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC<{
+ readonly apisOnly?: boolean;
+}> = ({apisOnly}) => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/lottie/lottie">
+ <strong>{'<Lottie>'}</strong>
+ <div>Embed a Lottie animation in Remotion</div>
+ </TOCItem>
+ <TOCItem link="/docs/lottie/getlottiemetadata">
+ <strong>getLottieMetadata()</strong>
+ <div>Get metadata of a Lottie animation</div>
+ </TOCItem>
+ <TOCItem link="/docs/lottie/staticfile">
+ <strong>staticFile()</strong>
+ <div>Load Lottie animations from a static file</div>
+ </TOCItem>
+ {apisOnly ? null : (
+ <>
+ <TOCItem link="/docs/lottie/remote">
+ <div>Loading Lottie animations from a remote URL</div>
+ </TOCItem>
+ <TOCItem link="/docs/lottie/lottiefiles">
+ <div>Where to find Lottie files</div>
+ </TOCItem>
+ </>
+ )}
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/media-utils/index.mdx b/packages/docs/docs/media-utils/index.mdx
index 4d8fc5a9e2..36a0f42268 100644
--- a/packages/docs/docs/media-utils/index.mdx
+++ b/packages/docs/docs/media-utils/index.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-media-utils-index.png
title: "@remotion/media-utils"
---
-import {TableOfContents} from '../../components/TableOfContents/media-utils';
+import {TableOfContents} from '../../media-utils/table-of-contents';
A package providing utility functions for getting information about video and audio, and for visualizing audio.
diff --git a/packages/docs/docs/media-utils/index.mdx.bak b/packages/docs/docs/media-utils/index.mdx.bak
new file mode 100644
index 0000000000..4d8fc5a9e2
--- /dev/null
+++ b/packages/docs/docs/media-utils/index.mdx.bak
@@ -0,0 +1,20 @@
+---
+image: /generated/articles-docs-media-utils-index.png
+title: "@remotion/media-utils"
+---
+
+import {TableOfContents} from '../../components/TableOfContents/media-utils';
+
+A package providing utility functions for getting information about video and audio, and for visualizing audio.
+
+Except for [`useAudioData()`](/docs/use-audio-data), all functions can also be used outside of Remotion.
+
+<Installation pkg="@remotion/media-utils"/>
+
+## Functions
+
+<TableOfContents />
+
+## License
+
+MIT
diff --git a/packages/docs/docs/media-utils/table-of-contents.tsx b/packages/docs/docs/media-utils/table-of-contents.tsx
new file mode 100644
index 0000000000..e625a6533f
--- /dev/null
+++ b/packages/docs/docs/media-utils/table-of-contents.tsx
@@ -0,0 +1,57 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/audio-buffer-to-data-url">
+ <strong>audioBufferToDataUrl()</strong>
+ <div>Serialize an audio buffer</div>
+ </TOCItem>
+ <TOCItem link="/docs/get-audio-data">
+ <strong>getAudioData()</strong>
+ <div>Get metadata of an audio source</div>
+ </TOCItem>
+ <TOCItem link="/docs/get-audio-duration-in-seconds">
+ <strong>getAudioDurationInSeconds()</strong>
+ <div>Get the duration of an audio source</div>
+ </TOCItem>
+ <TOCItem link="/docs/get-video-metadata">
+ <strong>getVideoMetadata()</strong>
+ <div>Get metadata of a video source</div>
+ </TOCItem>
+ <TOCItem link="/docs/get-waveform-portion">
+ <strong>getWaveformPortion()</strong>
+ <div>Trims audio data into a waveform</div>
+ </TOCItem>
+ <TOCItem link="/docs/use-audio-data">
+ <strong>useAudioData()</strong>
+ <div>
+ <code>getAudioData()</code> as a hook
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/use-windowed-audio-data">
+ <strong>useWindowedAudioData()</strong>
+ <div>
+ Optimized for fetching only current data, works only with{' '}
+ <code>.wav</code>
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/visualize-audio">
+ <strong>visualizeAudio()</strong>
+ <div>Process a music waveform for visualization</div>
+ </TOCItem>
+ <TOCItem link="/docs/media-utils/visualize-audio-waveform">
+ <strong>visualizeAudioWaveform()</strong>
+ <div>Process a voice waveform for visualization</div>
+ </TOCItem>
+ <TOCItem link="/docs/media-utils/create-smooth-svg-path">
+ <strong>createSmoothSvgPath()</strong>
+ <div>Turn waveform points into a smooth SVG path</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/motion-blur/index.mdx b/packages/docs/docs/motion-blur/index.mdx
index 3d87c147f6..874281b3f2 100644
--- a/packages/docs/docs/motion-blur/index.mdx
+++ b/packages/docs/docs/motion-blur/index.mdx
@@ -7,7 +7,7 @@ _Available from v3.2.31_
Higher order components that create a motion blur and trail effects.
-import { TableOfContents } from "../../components/TableOfContents/motion-blur";
+import { TableOfContents } from "../../motion-blur/table-of-contents";
<Installation pkg="@remotion/motion-blur" />
diff --git a/packages/docs/docs/motion-blur/index.mdx.bak b/packages/docs/docs/motion-blur/index.mdx.bak
new file mode 100644
index 0000000000..3d87c147f6
--- /dev/null
+++ b/packages/docs/docs/motion-blur/index.mdx.bak
@@ -0,0 +1,20 @@
+---
+image: /generated/articles-docs-motion-blur-index.png
+title: "@remotion/motion-blur"
+---
+
+_Available from v3.2.31_
+
+Higher order components that create a motion blur and trail effects.
+
+import { TableOfContents } from "../../components/TableOfContents/motion-blur";
+
+<Installation pkg="@remotion/motion-blur" />
+
+## Components
+
+<TableOfContents />
+
+## License
+
+MIT
diff --git a/packages/docs/docs/motion-blur/motion-blur.mdx b/packages/docs/docs/motion-blur/motion-blur.mdx
index a5e98ccc2c..818e9ddf07 100644
--- a/packages/docs/docs/motion-blur/motion-blur.mdx
+++ b/packages/docs/docs/motion-blur/motion-blur.mdx
@@ -4,7 +4,7 @@ title: "<MotionBlur>"
slug: motion-blur
---
-import {TableOfContents} from '../../components/TableOfContents/motion-blur';
+import {TableOfContents} from '../../motion-blur/table-of-contents';
_Deprecated_. Use `<Trail>` or `<CameraMotionBlur>` instead.
diff --git a/packages/docs/docs/motion-blur/motion-blur.mdx.bak b/packages/docs/docs/motion-blur/motion-blur.mdx.bak
new file mode 100644
index 0000000000..a5e98ccc2c
--- /dev/null
+++ b/packages/docs/docs/motion-blur/motion-blur.mdx.bak
@@ -0,0 +1,11 @@
+---
+image: /generated/articles-docs-motion-blur-motion-blur.png
+title: "<MotionBlur>"
+slug: motion-blur
+---
+
+import {TableOfContents} from '../../components/TableOfContents/motion-blur';
+
+_Deprecated_. Use `<Trail>` or `<CameraMotionBlur>` instead.
+
+<TableOfContents />
diff --git a/packages/docs/docs/motion-blur/table-of-contents.tsx b/packages/docs/docs/motion-blur/table-of-contents.tsx
new file mode 100644
index 0000000000..7bb0b1e4b5
--- /dev/null
+++ b/packages/docs/docs/motion-blur/table-of-contents.tsx
@@ -0,0 +1,20 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/motion-blur/trail">
+ <strong>{"<Trail>"}</strong>
+ <div>Add a trail effect to children</div>
+ </TOCItem>
+ <TOCItem link="/docs/motion-blur/camera-motion-blur">
+ <strong>{"<CameraMotionBlur>"}</strong>
+ <div>Add a natural camera motion blur effect to children</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/noise/index.mdx b/packages/docs/docs/noise/index.mdx
index 73f3b062dd..87680b9e21 100644
--- a/packages/docs/docs/noise/index.mdx
+++ b/packages/docs/docs/noise/index.mdx
@@ -10,7 +10,7 @@ Utility functions that create a noise effect.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import {TableOfContents} from '../../components/TableOfContents/noise';
+import {TableOfContents} from '../../noise/table-of-contents';
<Tabs
defaultValue="npm"
diff --git a/packages/docs/docs/noise/index.mdx.bak b/packages/docs/docs/noise/index.mdx.bak
new file mode 100644
index 0000000000..87680b9e21
--- /dev/null
+++ b/packages/docs/docs/noise/index.mdx.bak
@@ -0,0 +1,54 @@
+---
+image: /generated/articles-docs-noise-index.png
+title: "@remotion/noise"
+---
+
+
+_Available from v3.2.32_
+
+Utility functions that create a noise effect.
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import {TableOfContents} from '../../noise/table-of-contents';
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/noise
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/noise
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add @remotion/noise
+```
+
+ </TabItem>
+</Tabs>
+
+## Functions
+
+<TableOfContents/>
+
+## License
+
+MIT
diff --git a/packages/docs/docs/noise/table-of-contents.tsx b/packages/docs/docs/noise/table-of-contents.tsx
new file mode 100644
index 0000000000..d7b443510e
--- /dev/null
+++ b/packages/docs/docs/noise/table-of-contents.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { Grid } from "../../components/TableOfContents/Grid";
+import { TOCItem } from "../../components/TableOfContents/TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/noise/noise-2d">
+ <strong>noise2D()</strong>
+ <div>Create 2D noise</div>
+ </TOCItem>
+ <TOCItem link="/docs/noise/noise-3d">
+ <strong>noise3D()</strong>
+ <div>Create 3D noise</div>
+ </TOCItem>
+ <TOCItem link="/docs/noise/noise-4d">
+ <strong>noise4D()</strong>
+ <div>Create 4D noise</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/packages/docs/docs/paths/index.mdx b/packages/docs/docs/paths/index.mdx
index cbe094e9ae..247927c209 100644
--- a/packages/docs/docs/paths/index.mdx
+++ b/packages/docs/docs/paths/index.mdx
@@ -4,7 +4,7 @@ title: "@remotion/paths"
crumb: "SVG"
---
-import {TableOfContents} from '../../components/TableOfContents/paths';
+import {TableOfContents} from '../../paths/table-of-contents';
A package providing utility functions for dealing with SVG paths. This package includes code from [`svg-path-properties`](https://www.npmjs.com/package/svg-path-properties), [`svg-path-reverse`](https://github.com/Pomax/svg-path-reverse#readme), [`svgpath`](https://github.com/fontello/svgpath), [`svg-path-bbox`](https://github.com/mondeja/svg-path-bbox), [`translate-svg-path`](https://github.com/michaelrhodes/translate-svg-path) and [`d3-interpolate-path`](https://github.com/pbeshai/d3-interpolate-path) with the following improvements:
diff --git a/packages/docs/docs/paths/table-of-contents.tsx b/packages/docs/docs/paths/table-of-contents.tsx
new file mode 100644
index 0000000000..9c5c3b08a9
--- /dev/null
+++ b/packages/docs/docs/paths/table-of-contents.tsx
@@ -0,0 +1,85 @@
+import React from "react";
+import { Grid } from "../../components/TableOfContents/Grid";
+import { TOCItem } from "../../components/TableOfContents/TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/paths/get-length">
+ <strong>getLength()</strong>
+ <div>Obtain length of an SVG path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/get-point-at-length">
+ <strong>getPointAtLength()</strong>
+ <div>Get coordinates at a certain point of an SVG path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/get-tangent-at-length">
+ <strong>getTangentAtLength()</strong>
+ <div>
+ Gets tangents <code>x</code> and <code>y</code> of a point which is
+ on an SVG path
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/reverse-path">
+ <strong>reversePath()</strong>
+ <div>Switch direction of an SVG path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/normalize-path">
+ <strong>normalizePath()</strong>
+ <div>Replace relative with absolute coordinates</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/interpolate-path">
+ <strong>interpolatePath()</strong>
+ <div>Interpolates between two SVG paths</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/evolve-path">
+ <strong>evolvePath()</strong>
+ <div>Animate an SVG path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/translate-path">
+ <strong>translatePath()</strong>
+ <div>Translates the position of an path against X/Y coordinates</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/warp-path">
+ <strong>warpPath()</strong>
+ <div>Remap the coordinates of a path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/scale-path">
+ <strong>scalePath()</strong>
+ <div>Grow or shrink the size of the path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/get-bounding-box">
+ <strong>getBoundingBox()</strong>
+ <div>Get the bounding box of a SVG path</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/reset-path">
+ <strong>resetPath()</strong>
+ <div>
+ Translates an SVG path to <code>(0, 0)</code>
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/extend-viewbox">
+ <strong>extendViewBox()</strong>
+ <div>Widen an SVG viewBox in all directions</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/get-subpaths">
+ <strong>getSubpaths()</strong>
+ <div>Split SVG path into its parts</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/parse-path">
+ <strong>parsePath()</strong>
+ <div>Parse a string into an array of instructions</div>
+ </TOCItem>
+ <TOCItem link="/docs/paths/serialize-instructions">
+ <strong>serializeInstructions()</strong>
+ <div>Turn an array of instructions into a SVG path</div>
+ </TOCItem>{" "}
+ <TOCItem link="/docs/paths/reduce-instructions">
+ <strong>reduceInstructions()</strong>
+ <div>Reduce the amount of instruction types</div>
+ </TOCItem>{" "}
+ </Grid>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/packages/docs/docs/preload/preload.mdx b/packages/docs/docs/preload/preload.mdx
index e5d295ec1f..7d7a24d25e 100644
--- a/packages/docs/docs/preload/preload.mdx
+++ b/packages/docs/docs/preload/preload.mdx
@@ -7,7 +7,7 @@ title: "@remotion/preload"
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import {TableOfContents} from '../../components/TableOfContents/preload';
+import {TableOfContents} from '../../preload/table-of-contents';
This package provides functions for preloading assets. While preload is not necessary for rendering, it can help with seamless playback in the [`<Player />`](/docs/player) and in the Studio. Currently, three functions are implemented:
diff --git a/packages/docs/docs/preload/preload.mdx.bak b/packages/docs/docs/preload/preload.mdx.bak
new file mode 100644
index 0000000000..e5d295ec1f
--- /dev/null
+++ b/packages/docs/docs/preload/preload.mdx.bak
@@ -0,0 +1,20 @@
+---
+image: /generated/articles-docs-preload-preload.png
+id: preload
+sidebar_label: Overview
+title: "@remotion/preload"
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import {TableOfContents} from '../../components/TableOfContents/preload';
+
+This package provides functions for preloading assets. While preload is not necessary for rendering, it can help with seamless playback in the [`<Player />`](/docs/player) and in the Studio. Currently, three functions are implemented:
+
+<TableOfContents />
+
+An alternative to `@remotion/preload` is the [`prefetch()`](/docs/prefetch) API. See [`@remotion/preload` vs `prefetch()`](/docs/player/preloading#remotionpreload-vs-prefetch) to decide which one is better for your usecase.
+
+## Installation
+
+<Installation pkg="@remotion/preload"/>
diff --git a/packages/docs/docs/preload/table-of-contents.tsx b/packages/docs/docs/preload/table-of-contents.tsx
new file mode 100644
index 0000000000..0b603b2a23
--- /dev/null
+++ b/packages/docs/docs/preload/table-of-contents.tsx
@@ -0,0 +1,32 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/preload/preload-video">
+ <strong>preloadVideo()</strong>
+ <div>Preload a video source</div>
+ </TOCItem>
+ <TOCItem link="/docs/preload/preload-audio">
+ <strong>preloadAudio()</strong>
+ <div>Preload an audio source</div>
+ </TOCItem>
+ <TOCItem link="/docs/preload/preload-font">
+ <strong>preloadFont()</strong>
+ <div>Preload a font</div>
+ </TOCItem>
+ <TOCItem link="/docs/preload/preload-image">
+ <strong>preloadImage()</strong>
+ <div>Preload an image</div>
+ </TOCItem>
+ <TOCItem link="/docs/preload/preload-audio">
+ <strong>resolveRedirect()</strong>
+ <div>Get the definitive URL after all redirects</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/remotion.mdx b/packages/docs/docs/remotion.mdx
index 299f34f80c..8471cf442c 100644
--- a/packages/docs/docs/remotion.mdx
+++ b/packages/docs/docs/remotion.mdx
@@ -4,7 +4,7 @@ title: 'remotion'
crumb: 'Core API Reference'
---
-import {TableOfContents} from '../components/TableOfContents/remotion';
+import {TableOfContents} from '../remotion/table-of-contents';
A package containing the essential building blocks of expressing videos in Remotion.
diff --git a/packages/docs/docs/remotion.mdx.bak b/packages/docs/docs/remotion.mdx.bak
new file mode 100644
index 0000000000..299f34f80c
--- /dev/null
+++ b/packages/docs/docs/remotion.mdx.bak
@@ -0,0 +1,67 @@
+---
+image: /generated/articles-docs-remotion.png
+title: 'remotion'
+crumb: 'Core API Reference'
+---
+
+import {TableOfContents} from '../components/TableOfContents/remotion';
+
+A package containing the essential building blocks of expressing videos in Remotion.
+
+Some pure functions such as [`interpolate()`](/docs/interpolate) and [`interpolateColors()`](/docs/interpolate-colors) can also be used outside of Remotion.
+
+## Installation
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'bun', value: 'bun', },
+{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i remotion
+```
+
+ </TabItem>
+<TabItem value="bun">
+
+```bash
+bun i remotion
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i remotion
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add remotion
+```
+
+ </TabItem>
+</Tabs>
+
+## API
+
+The following functions and components are exposed:
+
+<TableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/remotion/table-of-contents.tsx b/packages/docs/docs/remotion/table-of-contents.tsx
new file mode 100644
index 0000000000..fec7d860be
--- /dev/null
+++ b/packages/docs/docs/remotion/table-of-contents.tsx
@@ -0,0 +1,142 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/composition">
+ <strong>{'<Composition>'}</strong>
+ <div>Define a video</div>
+ </TOCItem>
+ <TOCItem link="/docs/still">
+ <strong>{'<Still>'}</strong>
+ <div>Define a still</div>
+ </TOCItem>
+ <TOCItem link="/docs/folder">
+ <strong>{'<Folder>'}</strong>
+ <div>Organize compositions in the Studio sidebar</div>
+ </TOCItem>
+ <TOCItem link="/docs/register-root">
+ <strong>{'registerRoot()'}</strong>
+ <div>Initialize a Remotion project</div>
+ </TOCItem>
+ <TOCItem link="/docs/use-current-frame">
+ <strong>useCurrentFrame()</strong>
+ <div>Obtain the current time</div>
+ </TOCItem>
+ <TOCItem link="/docs/use-video-config">
+ <strong>useVideoConfig()</strong>
+ <div>Get the duration, dimensions and FPS of a composition</div>
+ </TOCItem>
+ <TOCItem link="/docs/interpolate">
+ <strong>interpolate()</strong>
+ <div>Map a range of values to another</div>
+ </TOCItem>
+ <TOCItem link="/docs/spring">
+ <strong>spring()</strong>
+ <div>Physics-based animation primitive</div>
+ </TOCItem>
+ <TOCItem link="/docs/interpolate-colors">
+ <strong>interpolateColors()</strong>
+ <div>Map a range of values to colors</div>
+ </TOCItem>
+ <TOCItem link="/docs/measure-spring">
+ <strong>measureSpring()</strong>
+ <div>Determine the duration of a spring</div>
+ </TOCItem>
+ <TOCItem link="/docs/easing">
+ <strong>Easing</strong>
+ <div>
+ Customize animation curve of <code>interpolate()</code>
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/img">
+ <strong>{'<Img>'}</strong>
+ <div>
+ Render an <code>{'<img>'}</code> tag and wait for it to load
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/video">
+ <strong>{'<Video>'}</strong>
+ <div>
+ Synchronize a <code>{'<video>'}</code> with Remotion{"'"}s time
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/audio">
+ <strong>{'<Audio>'}</strong>
+ <div>
+ Synchronize <code>{'<audio>'}</code> with Remotion{"'"}s time
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/offthreadvideo">
+ <strong>{'<OffthreadVideo>'}</strong>
+ <div>
+ Alternative to <code>{'<Video>'}</code>
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/animatedimage">
+ <strong>{'<AnimatedImage>'}</strong>
+ <div>Disply a GIF, AVIF or animated WebP image</div>
+ </TOCItem>
+ <TOCItem link="/docs/iframe">
+ <strong>{'<IFrame>'}</strong>
+ <div>
+ Render an <code>{'<iframe>'}</code> tag and wait for it to load
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/sequence">
+ <strong>{'<Sequence>'}</strong>
+ <div>Time-shifts it{"'"}s children</div>
+ </TOCItem>
+ <TOCItem link="/docs/series">
+ <strong>{'<Series>'}</strong>
+ <div>Display contents after another</div>
+ </TOCItem>
+ <TOCItem link="/docs/freeze">
+ <strong>{'<Freeze>'}</strong>
+ <div>Freeze some content in time</div>
+ </TOCItem>
+ <TOCItem link="/docs/loop">
+ <strong>{'<Loop>'}</strong>
+ <div>Play some content repeatedly</div>
+ </TOCItem>
+ <TOCItem link="/docs/delay-render">
+ <strong>delayRender()</strong>
+ <div>Block a render from continuing</div>
+ </TOCItem>
+ <TOCItem link="/docs/continue-render">
+ <strong>continueRender()</strong>
+ <div>Unblock a render</div>
+ </TOCItem>
+ <TOCItem link="/docs/cancel-render">
+ <strong>cancelRender()</strong>
+ <div>Abort an error</div>
+ </TOCItem>{' '}
+ <TOCItem link="/docs/get-input-props">
+ <strong>getInputProps()</strong>
+ <div>Receive the user-defined input data</div>
+ </TOCItem>
+ <TOCItem link="/docs/get-remotion-environment">
+ <strong>getRemotionEnvironment()</strong>
+ <div>Determine if you are currently previewing or rendering</div>
+ </TOCItem>
+ <TOCItem link="/docs/staticfile">
+ <strong>staticFile()</strong>
+ <div>
+ Access file from <code>public{'/'}</code> folder
+ </div>
+ </TOCItem>
+ <TOCItem link="/docs/absolute-fill">
+ <strong>{'<AbsoluteFill>'}</strong>
+ <div>Position content absolutely and in full size</div>
+ </TOCItem>
+ <TOCItem link="/docs/version">
+ <strong>{'VERSION'}</strong>
+ <div>Get the current version of Remotion</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/rive/index.mdx b/packages/docs/docs/rive/index.mdx
index 5767a691ad..d63ece07d2 100644
--- a/packages/docs/docs/rive/index.mdx
+++ b/packages/docs/docs/rive/index.mdx
@@ -7,7 +7,7 @@ crumb: Integrations
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
-import {TableOfContents} from '../../components/TableOfContents/rive';
+import {TableOfContents} from '../../rive/table-of-contents';
This package provides a component for rendering [Rive](https://rive.app) animations in Remotion.
diff --git a/packages/docs/docs/rive/index.mdx.bak b/packages/docs/docs/rive/index.mdx.bak
new file mode 100644
index 0000000000..5767a691ad
--- /dev/null
+++ b/packages/docs/docs/rive/index.mdx.bak
@@ -0,0 +1,53 @@
+---
+image: /generated/articles-docs-rive-index.png
+sidebar_label: Overview
+title: "@remotion/rive"
+crumb: Integrations
+---
+
+import Tabs from "@theme/Tabs";
+import TabItem from "@theme/TabItem";
+import {TableOfContents} from '../../components/TableOfContents/rive';
+
+This package provides a component for rendering [Rive](https://rive.app) animations in Remotion.
+
+## Installation
+
+Install `@remotion/rive`
+
+<Tabs defaultValue="npm" values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'yarn', value: 'yarn', },
+{ label: 'pnpm', value: 'pnpm', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/rive
+```
+
+</TabItem>
+<TabItem value="yarn">
+
+```bash
+yarn add @remotion/rive
+```
+
+</TabItem>
+<TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/rive
+```
+
+</TabItem>
+</Tabs>
+
+## API
+
+<TableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/rive/table-of-contents.tsx b/packages/docs/docs/rive/table-of-contents.tsx
new file mode 100644
index 0000000000..da995911c8
--- /dev/null
+++ b/packages/docs/docs/rive/table-of-contents.tsx
@@ -0,0 +1,16 @@
+import React from "react";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/rive/remotionrivecanvas">
+ <strong>{"<RemotionRiveCanvas>"}</strong>
+ <div>Render a Rive animation</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/shapes/index.mdx b/packages/docs/docs/shapes/index.mdx
index 4ffee8a235..23ccb9a0e3 100644
--- a/packages/docs/docs/shapes/index.mdx
+++ b/packages/docs/docs/shapes/index.mdx
@@ -4,7 +4,7 @@ title: "@remotion/shapes"
crumb: "SVG component library"
---
-import {TableOfContents} from '../../components/TableOfContents/shapes';
+import {TableOfContents} from '../../shapes/table-of-contents';
A package providing utility functions for generate SVG shapes.
diff --git a/packages/docs/docs/shapes/index.mdx.bak b/packages/docs/docs/shapes/index.mdx.bak
new file mode 100644
index 0000000000..4ffee8a235
--- /dev/null
+++ b/packages/docs/docs/shapes/index.mdx.bak
@@ -0,0 +1,53 @@
+---
+image: /generated/articles-docs-shapes-index.png
+title: "@remotion/shapes"
+crumb: "SVG component library"
+---
+
+import {TableOfContents} from '../../components/TableOfContents/shapes';
+
+A package providing utility functions for generate SVG shapes.
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npm i @remotion/shapes
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+pnpm i @remotion/shapes
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+yarn add @remotion/shapes
+```
+
+ </TabItem>
+</Tabs>
+
+## Functions
+
+<TableOfContents />
+
+## License
+
+MIT
diff --git a/packages/docs/docs/shapes/table-of-contents.tsx b/packages/docs/docs/shapes/table-of-contents.tsx
new file mode 100644
index 0000000000..948f37dca1
--- /dev/null
+++ b/packages/docs/docs/shapes/table-of-contents.tsx
@@ -0,0 +1,27 @@
+import React from "react";
+import { shapeComponents } from "../shapes/shapes-info";
+import { Grid } from "./Grid";
+import { TOCItem } from "./TOCItem";
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ {shapeComponents.map((c) => {
+ return (
+ <React.Fragment key={c.shape}>
+ <TOCItem link={"/docs/shapes/make-" + c.shape.toLowerCase()}>
+ <strong>make{c.shape}()</strong>
+ <div>Generate SVG Path for a {c.shape.toLowerCase()}</div>
+ </TOCItem>
+ <TOCItem link={"/docs/shapes/" + c.shape.toLowerCase()}>
+ <strong>{"<" + c.shape + "/>"}</strong>
+ <div>Render a {c.shape.toLowerCase()}</div>
+ </TOCItem>
+ </React.Fragment>
+ );
+ })}
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/transitions.mdx.bak b/packages/docs/docs/transitions.mdx.bak
new file mode 100644
index 0000000000..cb1c9c1226
--- /dev/null
+++ b/packages/docs/docs/transitions.mdx.bak
@@ -0,0 +1,111 @@
+---
+image: /generated/articles-docs-transitions.png
+id: transitioning
+title: Transitions
+crumb: "Techniques"
+---
+
+# Transitions<AvailableFrom v="4.0.59"/>
+
+import { TransitionsDuration } from "../components/TransitionsDuration";
+import { Presentations } from "../components/TableOfContents/transitions/presentations";
+import { Timings } from "../components/TableOfContents/transitions/timings";
+
+To transition between two types of absolutely positioned content, you can use the [`<TransitionSeries>`](/docs/transitions/transitionseries) component.
+
+```tsx twoslash title="SlideTransition.tsx"
+import { AbsoluteFill } from "remotion";
+
+const Letter: React.FC<{
+ children: React.ReactNode;
+ color: string;
+}> = ({ children, color }) => {
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: color,
+ opacity: 0.9,
+ justifyContent: "center",
+ alignItems: "center",
+ fontSize: 200,
+ color: "white",
+ }}
+ >
+ {children}
+ </AbsoluteFill>
+ );
+};
+// ---cut---
+import { linearTiming, TransitionSeries } from "@remotion/transitions";
+import { slide } from "@remotion/transitions/slide";
+
+const BasicTransition = () => {
+ return (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={40}>
+ <Letter color="#0b84f3">A</Letter>
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ presentation={slide()}
+ timing={linearTiming({ durationInFrames: 30 })}
+ />
+ <TransitionSeries.Sequence durationInFrames={60}>
+ <Letter color="pink">B</Letter>
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+ );
+};
+```
+
+<Demo type="slide" />
+
+## Enter and exit animations
+
+You don't necessarily have to use `<TransitionSeries>` for transitions between scenes. You can also use it to animate the entrace or exit of a scene by putting a transition first or last in the `<TransitionSeries>`.
+
+[See example](/docs/transitions/transitionseries#enter-and-exit-animations)
+
+## Duration
+
+In the above example, `A` is visible for 40 frames, `B` for 60 frames and the duration of the transition is 30 frames.
+During this time, both slides are rendered. This means the total duration of the animation is `60 + 40 - 30 = 70`.
+
+<TransitionsDuration />
+
+## Presentations
+
+A presentation determines the visual of animation.
+
+<Presentations />
+
+## Timings
+
+A timing determines how long the animation takes and the animation curve.
+
+<Timings />
+
+## Audio transitions
+
+See here how to include [audio effects](/docs/transitions/audio-transitions) in your transitions.
+
+## Getting the duration of a transition
+
+You can get the duration of a transition by calling `getDurationInFrames()` on the timing:
+
+```tsx twoslash title="Assuming a framerate of 30fps"
+import { springTiming } from "@remotion/transitions";
+
+springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23
+```
+
+## Rules
+
+<Step>1</Step> It is forbidden to have a transition that is longer than the duration
+of the previous or next sequence. <br />
+<Step>2</Step> There can be no two transitions next to each other. <br />
+<Step>3</Step> There must be at least one sequence before or after a transition.
+
+## See also
+
+- [`@remotion/transitions`](/docs/transitions)
+- [`<TransitionSeries>`](/docs/transitions/transitionseries)
diff --git a/packages/docs/docs/transitions/index.mdx b/packages/docs/docs/transitions/index.mdx
index 79de1d4fd4..616a757c55 100644
--- a/packages/docs/docs/transitions/index.mdx
+++ b/packages/docs/docs/transitions/index.mdx
@@ -8,7 +8,7 @@ _available from v4.0.53_
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
-import { TableOfContents } from "../../components/TableOfContents/transitions";
+import { TableOfContents } from "../../transitions/table-of-contents";
This package provides the [`<TransitionSeries>`](/docs/transitions/transitionseries) component for transitioning between two scenes as well as timing presets.
diff --git a/packages/docs/docs/transitions/index.mdx.bak b/packages/docs/docs/transitions/index.mdx.bak
new file mode 100644
index 0000000000..79de1d4fd4
--- /dev/null
+++ b/packages/docs/docs/transitions/index.mdx.bak
@@ -0,0 +1,25 @@
+---
+image: /generated/articles-docs-transitions-index.png
+sidebar_label: Overview
+title: "@remotion/transitions"
+---
+
+_available from v4.0.53_
+
+import Tabs from "@theme/Tabs";
+import TabItem from "@theme/TabItem";
+import { TableOfContents } from "../../components/TableOfContents/transitions";
+
+This package provides the [`<TransitionSeries>`](/docs/transitions/transitionseries) component for transitioning between two scenes as well as timing presets.
+
+## Installation
+
+<Installation pkg="@remotion/transitions"/>
+
+## API
+
+<TableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/transitions/presentations/index.mdx.bak b/packages/docs/docs/transitions/presentations/index.mdx.bak
new file mode 100644
index 0000000000..887675de8f
--- /dev/null
+++ b/packages/docs/docs/transitions/presentations/index.mdx.bak
@@ -0,0 +1,14 @@
+---
+image: /generated/articles-docs-transitions-presentations-index.png
+title: Presentations
+crumb: "@remotion/transitions"
+---
+
+A **presentation** together with a timing forms a transition.
+Remotion provides certain presentations out of the box, but you can also [create your own](/docs/transitions/presentations/custom).
+
+## Table of contents
+
+import { Presentations } from "../../../components/TableOfContents/transitions/presentations";
+
+<Presentations />
diff --git a/packages/docs/docs/transitions/table-of-contents.tsx b/packages/docs/docs/transitions/table-of-contents.tsx
new file mode 100644
index 0000000000..61a2f53bdd
--- /dev/null
+++ b/packages/docs/docs/transitions/table-of-contents.tsx
@@ -0,0 +1,30 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+import {Presentations} from '../../components/TableOfContents/transitions/presentations';
+import {Timings} from '../../components/TableOfContents/transitions/timings';
+
+export const TableOfContents: React.FC<{
+ readonly apisOnly?: boolean;
+}> = ({apisOnly}) => {
+ return (
+ <div>
+ <h3>Components</h3>
+ <Grid>
+ <TOCItem link="/docs/transitions/transitionseries">
+ <strong>
+ <code>{'<TransitionSeries>'}</code>
+ </strong>
+ <div>
+ A <code>{'<Series>'}</code> with transitions inbetween
+ </div>
+ </TOCItem>
+ </Grid>
+ <h3>Timings</h3>
+ <Timings apisOnly={Boolean(apisOnly)} />
+ <h3>Presentations</h3>
+ <p>Hover over an effect to see the preview.</p>
+ <Presentations apisOnly={Boolean(apisOnly)} />
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/packages/docs/docs/transitions/timings/index.mdx.bak b/packages/docs/docs/transitions/timings/index.mdx.bak
new file mode 100644
index 0000000000..85b4c79acd
--- /dev/null
+++ b/packages/docs/docs/transitions/timings/index.mdx.bak
@@ -0,0 +1,24 @@
+---
+image: /generated/articles-docs-transitions-timings-index.png
+title: Timings
+crumb: "@remotion/transitions"
+---
+
+A **timing** together with a presentation forms a transition.
+Remotion provides certain timings out of the box, but you can also [create your own](/docs/transitions/timings/custom).
+
+## Available timings
+
+import { Timings } from "../../../components/TableOfContents/transitions/timings";
+
+<Timings />
+
+## Getting the duration of a timing
+
+You can get the duration of a transition by calling `getDurationInFrames()` on the timing:
+
+```tsx twoslash title="Assuming a framerate of 30fps"
+import { springTiming } from "@remotion/transitions";
+
+springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23
+```