All components

Dither Image

Texture-based WebGL image that is dithered by default and disperses the dither pattern in a radial zone around the cursor on hover, or at the image center on keyboard focus.

Hover image
Dithered by default; hover or focus to disperse the dither around the cursor.
Abstract mountain landscape with an amber sun

Dithered by default; hover or focus to disperse the dither around the cursor.

Sign in to view this example's source code.

Sign in
Playground
Tune pixel size and palette levels while hovering.
Abstract mountain landscape

Sign in to view this example's source code.

Sign in

Props

NameTypeDefaultDescription
srcstringRequiredSame-origin, data URL, or CORS-enabled image texture.
altstringRequiredAccessible alternative text retained on the fallback image.
ditheredSrcstring-Optional alternate texture blended into the active state.
pixelSizenumber5Dither cell size in CSS pixels.
levelsnumber4Per-channel palette quantization levels.
revealRadiusnumber0.22Radius of the dither dispersion zone in aspect-corrected UV space.
durationnumber420Transition duration in milliseconds.
trigger'hover' | 'always' | 'manual''hover'Effect activation strategy; hover disperses dither at the cursor, keyboard focus disperses at center.
activebooleanfalseControlled active state used with manual trigger.