Skip to main content

blur()v4.0.465

Part of the @remotion/effects package.

A Gaussian blur that can be applied to canvas-based components such as <Video>, <HtmlInCanvas> and <Solid>..

Preview​

Drag current effect onto a layer in the Studio

Example​

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: 8})]} /> </> ); };

API​

Pass an object with the following properties.

radius​

The blur radius in pixels. Must be a finite number.

horizontal?​

Whether to blur along the horizontal axis. Defaults to true.

vertical?​

Whether to blur along the vertical axis. Defaults to true.

Set one axis to false for a directional blur:

effects={[blur({radius: 8, horizontal: true, vertical: false})]}

disabled?​

When true, the effect is skipped. Defaults to false.

Requirements​

blur() uses a WebGL2 backend. See Using WebGL and WebGPU during renders.

See also​