vibran

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.

Preview of Hover-expand sidebar running live
Copy the promptAdjust colors and speed

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

  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:

<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

All 22 sidebar effects →