Settings sidebar, scroll spy
Portuguese name: Sidebar de configurações
The sidebar of a settings screen that follows scrolling: the item for the visible section lights up and a bar slides to it. On click the page smooth-scrolls to the section and focus moves to its heading.

When to use it
For settings screens, profiles and long documentation pages, where everything fits in one scroll and people need to know where they are. It works with window scrolling or an inner scroll box, and finds which on its own; use data-rolagem to pin it. Give the last section a minimum height, otherwise it never reaches the top; the code already marks the last section when scrolling hits the end.
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:
<nav data-efeito="sidebar-configuracoes">
<p data-secao>Conta</p>
<a href="#perfil"><svg>…</svg><span>Perfil da empresa</span></a>
<a href="#equipe"><svg>…</svg><span>Equipe</span></a>
</nav>
<div style="overflow:auto">
<section id="perfil"><h2>Perfil da empresa</h2>…</section>
<section id="equipe"><h2>Equipe</h2>…</section>
</div>
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