vibran

Loading to success button

Portuguese name: Botão carregando e sucesso

On click, the label slides out and a spinning ring takes its place. When the action finishes, the ring turns into a checkmark with a success message. On error, the button shakes and shows the error.

Preview of Loading to success button running live
Copy the promptAdjust colors and speed

When to use it

Ideal for contact, order, booking or payment forms, when the request takes a moment and people need to know it worked. Hook it to the real request with the "carregar" event; without it, the button only fakes a send, which is fine for testing and never for production. Put what actually happened in data-feito ("Booking confirmed") and what to do in data-erro, and set data-voltar="0" if the button shouldn't be clicked twice.

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-carregando" data-feito="Mensagem enviada">Enviar mensagem</button>

More buttons effects

All 41 buttons effects →