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.

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
- 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="botao-carregando" data-feito="Mensagem enviada">Enviar mensagem</button>
More buttons effects
- 3D push buttonBotão 3D
- Rainbow buttonBotão arco-íris
- 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
- Particle burst buttonBotão com explosão de partículas