vibran

Toast notification

Portuguese name: Aviso no canto da tela

Short toast notifications slide in at the corner of the screen, stack up, and disappear on their own. Trigger them from a button or from JS with Efeitos.avisar("Salvo").

Preview of Toast notification running live
Copy the promptAdjust colors and speed

When to use it

Use it to confirm an action without moving the person anywhere: item added to cart, settings saved, link copied, form sent. For errors the user has to fix, like a declined card, a toast that disappears on its own is not enough; keep the message next to the field too. Set data-tipo="ok" or "erro" for the right color, and raise data-tempo when the text runs past one line.

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="aviso" data-texto="Alterações salvas" data-tipo="ok">Salvar</button>
<!-- ou pelo JS: Efeitos.avisar("Pedido enviado", { tipo: "ok" }) -->

Sites that use this effect

More modals effects

All 15 modals effects →