vibran

Brush reveal transition

Also called: paint to reveal next image

The mouse or finger paints over the photo and the next image appears wherever it goes. Once enough is painted, the swap completes by itself. A click sends the brush across automatically.

Preview of Brush reveal transition running live
Copy the promptAdjust colors and speed

When to use it

For a portfolio highlight, a renovation before and after, a campaign cover or a short gallery where the visitor takes part in the swap. Use 2 to 6 images with the same proportions, and a box with a defined height. By default the brush sweeps by itself after a few idle seconds, so the showcase never goes dead; use data-auto="0" to turn that off. On mobile, dragging sideways paints and vertical scrolling still works.

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="transicao-pincel" data-pincel="90" style="height:460px">
  <img src="a.jpg" alt="Primeira foto">
  <img src="b.jpg" alt="Segunda foto">
  <img src="c.jpg" alt="Terceira foto">
</div>

More images effects

All 11 images effects →