Skip to content

🎥 Make videos programmatically with React

Docs: /effects (#8014)

Jonny Burgere239066bb8d5
diff --git a/packages/docs/docs/effects.mdx b/packages/docs/docs/effects.mdx
new file mode 100644
index 0000000000..bd409f6777
--- /dev/null
+++ b/packages/docs/docs/effects.mdx
@@ -0,0 +1,66 @@
+---
+image: /generated/articles-docs-effects.png
+id: effects
+title: Effects
+crumb: 'Designing visuals'
+---
+
+# Effects<AvailableFrom v="4.0.464" />
+
+Pixels of canvas-based components can be manipulated using effects.
+
+## Supported components
+
+The following components support effects:
+
+- [`<Solid>`](/docs/solid)
+- [`<HtmlInCanvas>`](/docs/html-in-canvas)
+- [`<Video>`](/docs/media/video)
+- [`<Img>`](/docs/img)
+- [`<CanvasImage>`](/docs/canvasimage)
+- [`<AnimatedImage>`](/docs/animatedimage)
+- [`<Gif>`](/docs/gif/gif)
+
+## Usage
+
+Pass effects through the `effects` prop as an array of effect functions:
+
+```tsx twoslash title="MyComp.tsx"
+import {Video} from '@remotion/media';
+import {blur} from '@remotion/effects/blur';
+
+export const MyComp: React.FC = () => {
+ return (
+ <Video
+ src="https://remotion.media/video.mp4"
+ effects={[blur({radius: 40})]}
+ />
+ );
+};
+```
+
+## Multipass
+
+Multiple effects can be combined. They apply in the order they are specified.
+
+## Available effects
+
+import {TableOfContents} from './effects/table-of-contents';
+
+<TableOfContents />
+
+## Visual editing in Studio
+
+When you select a component with effects in [Remotion Studio](/docs/studio), you can edit effect parameters in the timeline and toggle effects.
+
+<img style={{width: '400px'}} src="/img/effects-studio-panel.png" alt="Effects panel in Remotion Studio" />
+
+## Custom effects
+
+It will be possible in a future version of Remotion to create your own effects based on 2D Canvas APIs, WebGL or WebGPU and to mix them together.
+
+We are working on a nice API that shall be future-proof, which is why we have not released it yet.
+
+## See also
+
+- [`@remotion/effects`](/docs/effects/api)
diff --git a/packages/docs/docs/effects/index.mdx b/packages/docs/docs/effects/index.mdx
index e3df87f522..6dae3e747f 100644
--- a/packages/docs/docs/effects/index.mdx
+++ b/packages/docs/docs/effects/index.mdx
@@ -7,7 +7,7 @@ title: '@remotion/effects'
# @remotion/effects<AvailableFrom v="4.0.464" />
-Effects that can be applied to Remotion-based canvas components such as [`<Solid>`](/docs/solid), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas), and [`<Video>`](/docs/media/video).
+[Effects](/docs/effects) that can be applied to Remotion-based canvas components such as [`<Solid>`](/docs/solid), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas), and [`<Video>`](/docs/media/video).
import {TableOfContents} from './table-of-contents';
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 4af42c7876..731d050d02 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -1001,6 +1001,7 @@ const sidebars: SidebarsConfig = {
'assets',
'layers',
'transitioning',
+ 'effects',
'fonts',
'measuring',
'using-randomness',
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 8f6b478dc6..80428acfc9 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1718,6 +1718,15 @@ export const articles = [
noAi: false,
slug: 'editor-starter/vs-studio',
},
+ {
+ id: 'effects',
+ title: 'Effects',
+ relativePath: 'docs/effects.mdx',
+ compId: 'articles-docs-effects',
+ crumb: 'Designing visuals',
+ noAi: false,
+ slug: 'effects',
+ },
{
id: 'effects/barrel-distortion',
title: 'barrelDistortion()',
diff --git a/packages/docs/static/generated/articles-docs-effects-contrast.png b/packages/docs/static/generated/articles-docs-effects-contrast.png
new file mode 100644
index 0000000000..0a256aabc5
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-effects-contrast.png differ
diff --git a/packages/docs/static/generated/articles-docs-effects.png b/packages/docs/static/generated/articles-docs-effects.png
new file mode 100644
index 0000000000..c1026ed617
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-effects.png differ
diff --git a/packages/docs/static/img/effects-studio-panel.png b/packages/docs/static/img/effects-studio-panel.png
new file mode 100644
index 0000000000..36d89b517f
Binary files /dev/null and b/packages/docs/static/img/effects-studio-panel.png differ
diff --git a/packages/docs/vercel.ts b/packages/docs/vercel.ts
index 14ac1767b1..bfb0500f52 100644
--- a/packages/docs/vercel.ts
+++ b/packages/docs/vercel.ts
@@ -196,6 +196,7 @@ export const config: VercelConfig = {
routes.redirect('/transitions', '/docs/transitioning', {
permanent: false,
}),
+ routes.redirect('/effects', '/docs/effects', {permanent: false}),
routes.redirect(
'/repro',
'https://stackblitz.com/fork/github/remotion-dev/template-helloworld',