vibran

Filterable gallery

Also called: FLIP grid

An image grid with category buttons. When you filter, what leaves fades out, what stays slides to its new position and what enters grows into place, with no layout jump.

Preview of Filterable gallery running live
Copy the promptAdjust colors and speed

When to use it

For architecture, photography, agency portfolios, product catalogs or event galleries with more than 6 items and two or three clear categories. The buttons come from the categories you write in data-categoria, so there is no filter to build. Adjust data-colunas for image size and --galeria-filtro-cor to match the brand. Visitors who prefer reduced motion get the direct swap, with no animation.

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="galeria-filtro" data-conta="obras">
  <figure data-categoria="Casas"><img src="a.jpg" alt="Casa Ipê Roxo"><figcaption>Casa Ipê Roxo</figcaption></figure>
  <figure data-categoria="Prédios"><img src="b.jpg" alt="Edifício Aroeira"><figcaption>Edifício Aroeira</figcaption></figure>
</div>

More images effects

All 11 images effects →