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.

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
- 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:
<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
- Vertical glass dock, spring active circleDock vertical de vidro
- Swipe drawer, off-canvas sidebarGaveta lateral com gesto
- Searchable sidebar, keyboard shortcutSidebar com busca e atalho
- Sidebar with spring active indicatorSidebar com indicador de mola
- Pinned sidebar, favorite menu itemsSidebar com itens fixados
- Reorderable sidebar, drag to sort menuSidebar com itens reordenáveis
- Accordion sidebar, nested menuSidebar com submenus em acordeão
- Workspace switcher sidebarSidebar com troca de espaço