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.

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
- 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:
<div data-efeito="botao-deslizar" data-feito="Pagamento enviado">Deslize para pagar</div>
More buttons effects
- 3D push buttonBotão 3D
- Rainbow buttonBotão arco-íris
- Loading to success buttonBotão carregando e sucesso
- Cursor-aware light border button, conic border follows mouseBotão com borda de luz que aponta para o mouse
- Gradient border buttonrotating border
- Marching ants button, animated dashed border buttonBotão com borda tracejada em marcha
- Shimmer buttonBotão com brilho passando
- Stroke draw buttonSVG border animation