vibran

Halftone image

Also called: dot matrix photo reveal

The photo becomes a halftone grid of dots that swell where it is bright, with a wave of light sweeping across them. The mouse (or finger) opens a round window onto the real photo; with no mouse, the window drifts around by itself.

Preview of Halftone image running live
Copy the promptAdjust colors and speed

When to use it

For portfolio covers, event posters, music pages, design studios or any image that deserves a printed look. It works best on images with contrast and clear bright areas. Use data-modo="mono" with --halftone-tinta for a single ink (newspaper or risograph style). Smaller cells are more faithful and cost more CPU, 8 to 14 px is the sweet spot. A photo from another domain needs CORS, otherwise the plain image stays visible in place of the effect.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="halftone-imagem" data-celula="12" style="height:460px">
  <img src="foto.jpg" alt="Descrição da foto" style="width:100%;height:100%;object-fit:cover">
</div>

More images effects

All 11 images effects →