vibran

Reorderable sidebar, drag to sort menu

Portuguese name: Sidebar com itens reordenáveis

Each menu item gets a grip handle. While dragging, the other items slide apart to make room and the chosen one follows the pointer and settles on release. With the keyboard, arrow keys move the focused item. The order can be saved in the browser.

Preview of Reorderable sidebar, drag to sort menu running live
Copy the promptAdjust colors and speed

When to use it

For dashboards where each person has a different routine and wants the menu in their own order: management systems, CRMs, internal tools. With data-guardar the order survives a page reload; each item needs a data-id. Unnecessary for short, fixed menus.

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-reordenar" data-guardar="menu-studio" aria-label="Menu principal">
  <ul>
    <li data-id="agenda"><a href="#" aria-current="page"><svg>…</svg><span>Agenda</span></a></li>
    <li data-id="alunos"><a href="#"><svg>…</svg><span>Alunos</span></a></li>
    <li data-id="planos"><a href="#"><svg>…</svg><span>Planos</span></a></li>
  </ul>
</nav>

More sidebar effects

All 22 sidebar effects →