Skip to content
Image Effects

PixelReveal

The picture starts as big square blocks and sharpens in steps when it comes on screen, then a plain picture is left. Stays hidden if JavaScript is off.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
srcstring—Picture address.
altstring—Text for screen readers.
blocknumber64Size of the first blocks in pixels.
durationnumber0.9Seconds from the first blocks to the sharp picture.
oncebooleantruefalse plays it again each time it comes back on screen.
classNamestring"aspect-video"Set the size here.