Stacking cards on scroll
Also called: sticky card stack
As you scroll, each card sticks to the top and the next one slides over it. The covered cards shrink and darken slightly, building a stack. Works with page scroll or inside a scrollable box.

When to use it
Good for "how it works", service steps, project showcases or a list of strengths on a landing page. Each card needs a defined height, and equal heights look best. Use data-auto="1" for showcases only: it scrolls by itself until the visitor interacts. Adjust --empilhar-passo to show more or less of the edge of the cards below.
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="cartoes-empilhando"><section style="height:300px">Passo 1</section><section style="height:300px">Passo 2</section><section style="height:300px">Passo 3</section></div>
More cards effects
- Animated borderBorda girando
- 3D ring carouselCarrossel 3D
- Spatial carouselvision glass carousel
- Spotlight cardCartão com brilho
- Page curl cardpeel corner
- Profile cardreactive avatar / counter card
- Reactive dot grid card, interactive dot matrix hoverCartão de pontos reativos
- Product card with color swatchesspin