All effects
MediaClient component

Pixel Displacement

An image breaks into displaced tiles around the pointer and settles back into place.

Move across the image

Effect style
Field study, blue geometric artwork

Move over the surface to displace the image

Usage

tsx
import { PixelDisplacement } from "@/components/effects/pixel-displacement"

<PixelDisplacement src="/your-image.webp" alt="Project cover" columns={18} strength={26} />

API reference

Pixel Displacement props
PropType / defaultDescription
src / altstringImage URL and accessible description. Use local or CORS-enabled images when exporting canvas data.
columnsnumber = 18Horizontal tile count, constrained to 4–64 for rendering.
strengthnumber = 26Maximum pointer displacement in CSS pixels.

Use className to adjust layout and styling. New effects respect system reduced-motion preferences and the preview motion setting.