Hold to delete confirmation dialog
Portuguese name: Confirmar apagando segurando
A dialog for actions that can't be undone, like deleting a project. The red button only confirms when held: the bar fills, the window shakes harder and harder, and when it completes it turns into a "deleted" state and closes. Let go early and the bar rewinds.

When to use it
For deleting a project, cancelling a subscription, emptying the trash, clearing a register: anything you can't undo. Holding prevents accidental clicks without the annoying "are you sure?". Focus starts on Cancel on purpose. On the keyboard, hold Enter or Space; a screen reader confirms with a single activation. Your code listens for the efeito:confirmado event.
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="confirmar-segurando" data-abrir="#apagar" data-nome="Site da padaria" data-remover="li">Excluir</button>
<div id="apagar" hidden>
<h3>Excluir projeto?</h3>
<p>"<b data-nome-alvo></b>" será apagado.</p>
<button data-fechar>Cancelar</button>
<button data-segurar data-feito="Excluído">Segure para excluir</button>
</div>
More modals effects
- Cookie consent bannerpreferences card
- Toast notificationAviso no canto da tela
- Stacked toast notificationssonner-style
- 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