vibran

Pinned sidebar, favorite menu items

Portuguese name: Sidebar com itens fixados

Every menu item has a star. Pinning slides the item up into a Pinned section and the others settle around it; unpinning sends it back to its original spot. Supports a pin limit, with a shake on the heading when it is exceeded.

Preview of Pinned sidebar, favorite menu items running live
Copy the promptAdjust colors and speed

When to use it

For systems with many screens where each person uses only four or five a day: ERP, store dashboards, CRM. The shortcut sits at the top without hiding the rest of the menu. Use data-max so the Pinned section does not grow into a second menu.

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-fixados" data-max="4" aria-label="Menu principal">
  <h3>Fixados <span data-conta></span></h3>
  <ul data-lista="fixados"></ul>
  <h3>Todos</h3>
  <ul data-lista="todos">
    <li data-fixado><a href="#"><svg>…</svg><span>Pedidos</span></a></li>
    <li><a href="#"><svg>…</svg><span>Estoque</span></a></li>
  </ul>
</nav>

More sidebar effects

All 22 sidebar effects →