vibran

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.

Preview of Quantity stepper running live
Copy the promptAdjust colors and speed

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

  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:

<div data-efeito="quantidade-odometro" data-rotulo="Quantidade" data-valor="1" data-min="1" data-max="20"></div>

More inputs effects

All 14 inputs effects →