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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Image comparison sliderAntes e depois
- Mouse parallaxdepth layers / 2.5D image
- Halftone imagedot matrix photo reveal
- Liquid image distortionWebGL hover ripple
- Pixel revealImagem que se forma em pixels
- Ken Burns slideshow with captionsphoto story
- Image lensmagnifier
- Tile revealmosaic image reveal