Skip to content
Image Effects

HalftoneReveal

The picture sits on the page as a black ink newspaper print. Under the pointer the dots swell open onto the real colour picture. Press to open all of it, press again to go back to print. Canvas, no WebGL.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
srcstringโ€”Picture address. From another site it needs CORS headers, or the dots come out one even size.
altstringโ€”Text for screen readers.
captionstringโ€”Printed under the picture.
paperstring"#ece4d2"Colour of the newsprint.
inkstring"#191713"Colour of the dots.
dotsnumber84Dots across the picture. Never closer than 4.5 pixels.
lensnumber0.3Size of the colour patch under the pointer, as a part of the width.
anglenumber45Tilt of the dot rows, in degrees.
classNamestring"w-[28rem]"Set the width here.