vibran

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.

Preview of Stacking cards on scroll running live
Copy the promptAdjust colors and speed

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

  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="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

All 27 cards effects →