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").

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Anvil LabSaaS
- Barro VivoStore
More modals effects
- Cookie consent bannerpreferences card
- Stacked toast notificationssonner-style
- Hold to delete confirmation dialogConfirmar apagando segurando
- Depth modalglass dialog with background scale
- Bottom sheetdraggable drawer
- Image lightbox with zoom from thumbnailGaleria que amplia a partir da miniatura
- Spring drawerphysics side sheet
- Drawerside sheet