vibran

Resizable sidebar, drag handle

Portuguese name: Sidebar redimensionável

Grab the sidebar edge and drag to widen or narrow it, with a label showing the width. Past the limit it snaps to an icon rail. Double-click toggles, arrow keys adjust it, and the width can be remembered.

Preview of Resizable sidebar, drag handle running live
Copy the promptAdjust colors and speed

When to use it

For products with long menu names or people who switch between a big monitor and a laptop, like barbershop, clinic and ERP dashboards. The handle is a focusable separator: Tab reaches it and arrows change the width in 16 px steps (Shift for 48). Tune data-min, data-max and data-limiar; with data-lembrar people return to the width they left.

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-redimensionavel" data-min="190" data-max="420" data-lembrar="painel">
  <nav aria-label="Principal">
    <a href="#" aria-current="page"><svg>…</svg><span>Agenda</span></a>
    <a href="#"><svg>…</svg><span>Clientes e fidelidade</span></a>
  </nav>
</aside>

More sidebar effects

All 22 sidebar effects →