vibran

Scroll-spy menu with progress line, active section navigation

Portuguese name: Menu que acompanha a rolagem

The menu marks the section on screen. A line under the links slides to the current section's link and fills up as you read through that section.

Preview of Scroll-spy menu with progress line, active section navigation running live
Copy the promptAdjust colors and speed

When to use it

Long single pages: business sites, landing pages, docs, product pages. Each link must point to a section id. If the menu is fixed at the top, give the sections scroll-margin-top. With data-direcao="vertical" it becomes a side index. Change data-ponto to decide at what screen height a section counts as current. The current link gets aria-current="location".

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="menu-rolagem-linha" aria-label="Seções"><a href="#sobre">Sobre</a><a href="#servicos">Serviços</a><a href="#contato">Contato</a></nav>

More navigation effects

All 20 navigation effects →