Hover-expand sidebar
Portuguese name: Sidebar que abre ao passar o mouse
A thin icon rail that opens over the content when the mouse arrives or focus enters, without pushing the page. Labels slide in one after another and a short delay avoids accidental opening. On phones, the first tap only opens it.

When to use it
Good for dense dashboards with tables and charts that want the full screen but need navigation at hand. The bar needs the full height of its parent, so use it inside a flex or grid container. Elements with data-oculta-recolhida only show when open, good for an upgrade card or profile. Raise data-atraso if it opens by accident.
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:
<aside data-efeito="sidebar-ao-passar" data-atraso="140">
<nav aria-label="Principal">
<a href="#" aria-current="page"><svg>…</svg><span>Pedidos</span></a>
<a href="#"><svg>…</svg><span>Produtos</span></a>
</nav>
<div data-oculta-recolhida>Plano Grátis · Fazer upgrade</div>
</aside>
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 rolling counters, odometer badgesSidebar com contadores que rolam
- 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