vibran

Hold to confirm button

Portuguese name: Botão de segurar para confirmar

A hold to confirm button for actions that can't be undone. You have to hold it until the bar fills. Let go early and the bar rewinds. When it fills, the label changes and the button calls your code.

Preview of Hold to confirm button running live
Copy the promptAdjust colors and speed

When to use it

For actions you can't undo: cancel an order, delete an account, end a subscription, approve a large payment. Say in the label that it needs holding ("Hold to cancel"), because nobody guesses. Tune data-tempo to the weight of the action, and set data-voltar="0" when the button should stay confirmed.

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="botao-segurar" data-feito="Pedido cancelado">Segure para cancelar</button>

More buttons effects

All 41 buttons effects →