packages/docs/docs/effects.mdx
Pixels of canvas-based components can be manipulated using effects.
The following components support effects:
<Solid><HtmlInCanvas><Video><CanvasImage><AnimatedImage><Gif><RemotionRiveCanvas>@remotion/shapes components<AvailableFrom v="4.0.474" inline />Pass effects through the effects prop as an array of effect functions:
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})]}
/>
);
};
Multiple effects can be combined. They apply in the order they are specified.
import {TableOfContents} from './effects/table-of-contents';
<TableOfContents />When you select a component with effects in Remotion Studio, you can edit effect parameters in the timeline and toggle 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.