vibran

Swipe cards

Also called: tinder deck

A deck of cards you drag sideways: release to the right to save, to the left to pass. The card behind moves up to take its place, and stamps fade in as the finger or mouse pulls.

Preview of Swipe cards running live
Copy the promptAdjust colors and speed

When to use it

Good for quick triage: listings, candidates, products, profiles, recipes. Listen to the "deslizar" event to store each choice. With data-ciclo="0" the deck runs out and you can show an end screen with a child marked data-vazio. Give the deck a fixed height.

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-deslizar" style="width:300px;height:400px"><div>Cartão 1</div><div>Cartão 2</div><div>Cartão 3</div></div>

More cards effects

All 27 cards effects →