vibran

Sidebar with rolling counters, odometer badges

Portuguese name: Sidebar com contadores que rolam

Menu items with a count badge where each digit rolls like an odometer when the number changes, with a small pop and ripple when it goes up. At zero the badge shrinks away, past 99 it shows 99+. Changing the data-contador attribute is all it takes to update it.

Preview of Sidebar with rolling counters, odometer badges running live
Copy the promptAdjust colors and speed

When to use it

For app menus that receive news all day: inbox, orders, bookings, tickets. The rolling digits catch the eye without pulling people away from what they are doing. Remove data-simular in production and update the attribute with the real number from your server.

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:

<nav data-efeito="sidebar-contadores" data-simular="sim" aria-label="Menu principal">
  <a href="#" aria-current="page"><svg>…</svg><span>Reservas</span><span data-contador="3"></span></a>
  <a href="#"><svg>…</svg><span>Mensagens</span><span data-contador="12"></span></a>
  <a href="#"><svg>…</svg><span>Avaliações</span><span data-contador="0"></span></a>
</nav>

<!-- ao chegar algo novo, no seu código: -->
<script>document.querySelector('[data-contador]').dataset.contador = 13;</script>

More sidebar effects

All 22 sidebar effects →