vibran

Layered parallax card

Also called: depth card / pop-out card

A card built from depth layers: as the mouse moves, or the phone tilts, the card turns and each layer shifts at its own speed. Front elements pop out of the frame. With no mouse, it sways on its own.

Preview of Layered parallax card running live
Copy the promptAdjust colors and speed

When to use it

Good for a project, destination, product or character cover, when the art can be split into layers with transparent backgrounds (PNG, WebP or SVG). Give each layer a data-prof: negative behind, positive in front. Layers with prof above 0 can leave the frame. The effect controls each layer's transform, so use margin or position for adjustments.

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-camadas" style="width:320px;height:420px"><div data-prof="-40">fundo</div><div data-prof="0">meio</div><div data-prof="60">frente</div></div>

More cards effects

All 27 cards effects →