vibran

Slide to confirm, swipe to pay button

Portuguese name: Botão de deslizar para confirmar

A track with a knob the user drags all the way across, like unlocking a phone. The label shimmers as an invitation and colour fills in behind the knob. Let go early and it springs back; reach the end and it turns into a green check.

Preview of Slide to confirm, swipe to pay button running live
Copy the promptAdjust colors and speed

When to use it

Payments, cancellations, placing an order, transfers: actions that must not happen by accident, especially on phones. Dragging is deliberately harder than a click, so say it in the label ("Deslize para pagar"). Listen to the "confirmado" event; on a keyboard, the arrow keys move the knob and End confirms. data-limite changes how far it must be dragged.

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:

<div data-efeito="botao-deslizar" data-feito="Pagamento enviado">Deslize para pagar</div>

More buttons effects

All 41 buttons effects →