Quantity stepper
Also called: rolling number
Minus and plus buttons with a number that rolls like an odometer: each digit rolls up or down in its own column, including the 9 to 10 rollover. Holding a button repeats and speeds up, and the arrow keys work.

When to use it
Carts, tickets, bookings, any small number people change often. Set data-min and data-max from real stock and use the quantidade event to recalculate totals. For large numbers (over 999) a typeable field beats pressing a button.
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="quantidade-odometro" data-rotulo="Quantidade" data-valor="1" data-min="1" data-max="20"></div>
More inputs effects
- Star ratingreview stars
- Expanding search barBusca que se expande
- Glowing inputAI prompt box
- Line draw inputunderline input animation
- Floating label inputCampo com rótulo flutuante
- Tag inputchips input
- Credit card formflip card on CVV
- OTP inputverification code input