Add to cart stepper button
Portuguese name: Botão que vira contador
The Add button turns into a stepper with minus, number and plus, like in delivery apps. The number rolls on each tap, the plus dims at the limit, and when it gets back to zero it becomes a button again.

When to use it
Menus, shops and shopping lists where people pick quantities without leaving the page. One tap adds the first item and the button itself becomes the control, with no new screen. Set data-max to match stock and give each item a data-nome so a screen reader can say "Add one more empanada". Use el.quantidade(0) to reset from code.
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-quantidade" data-rotulo="Adicionar" data-max="9" data-nome="empanada"></div>
<script>
document.querySelector("[data-efeito=botao-quantidade]").addEventListener("mudou", (e) => {
console.log("quantidade:", e.detail.quantidade);
});
</script>
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