vibran

Stacked toast notifications

Also called: sonner-style

Notifications stack like a deck of cards in the corner, each one a little smaller and further back. Hover over the pile and it fans open to show them all while the timers pause. You can dismiss one by swiping it sideways.

Preview of Stacked toast notifications running live
Copy the promptAdjust colors and speed

When to use it

In apps that receive several notifications in a row: order desk, support dashboard, delivery app. Instead of a pile that covers the screen, the stack takes the space of one toast and only opens when the person wants to read. For errors that need fixing, use data-tempo="0" so the toast stays until dismissed. Call Efeitos.empilhar(...) from your code when something happens.

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:

<button data-efeito="avisos-empilhados" data-titulo="Pedido enviado" data-texto="A cozinha já recebeu" data-tipo="ok">Enviar</button>
<!-- ou pelo JS: Efeitos.empilhar("Link copiado", { titulo: "Pronto", tipo: "ok" }) -->

More modals effects

All 15 modals effects →