All components

Paint Reveal Background

Layered image background that keeps an accessible outline visible and reveals a textured painted image wherever the pointer moves close to the artwork.

Botanical paint reveal
Move or touch near the outlined flower to reveal stable, textured pigment.
Outlined flower that becomes painted near the pointer or touch

Sign in to view this example's source code.

Sign in
Playground
Tune reveal radius, edge softness, texture noise, transition timing, and image fit.
Outlined flower that becomes painted near the pointer or touch

Paint controls

Image fit

Sign in to view this example's source code.

Sign in

Props

NameTypeDefaultDescription
outlineSrcstringRequiredAlways-visible outline image used as the accessible fallback layer.
paintedSrcstringRequiredTransparent colour image revealed by the WebGL proximity field.
altstringRequiredAlternative text describing the complete outlined and painted subject.
backgroundReactNode-Decorative visual layer rendered behind both aligned images.
childrenReactNode-Accessible foreground content rendered above the image effect.
radiusnumber180Pointer reveal radius in CSS pixels.
softnessnumber0.4Feathered proportion of the reveal edge from 0 to 1.
noiseStrengthnumber0.2Stable pigment grain and organic edge breakup from 0 to 1.
durationnumber350Reveal entrance and exit transition duration in milliseconds.
objectFit'cover' | 'contain''contain'Shared fitting mode used by the outline and painted texture.
objectPositionstring'center'Shared CSS keyword or percentage position used to align both images.
interactivebooleantrueWhether pointer proximity can reveal the painted texture.