vibran

Throwable cards

Also called: physics cards

Cards loose on a table: grab one, drag it and throw it. It slides off with inertia, spins with its speed, bounces off the edges and slowly stops. The one you pick up rises above the others and gets the shadow of something in the air.

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

When to use it

A swatch catalog (colors, fabrics, materials), an idea table, game cards, portfolio polaroids, or anywhere moving the objects is part of the fun. Give the cards a fixed size and the table a height. It works with mouse, touch and arrow keys. Don't use it for a list that has to stay in order.

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="cartao-arremesso" style="height:420px; display:flex; flex-wrap:wrap; gap:16px">
  <article style="width:150px; height:210px">Verde Mata</article>
  <article style="width:150px; height:210px">Azul Baía</article>
</div>

More cards effects

All 27 cards effects →