To set an active/current state for link blocks in Webflow and change list states on scroll, you need to combine Webflow's Current state styling with interactions or scroll-based logic. Here’s how you can do both:
#section-id
) will automatically receive a special “Current” class when that page or section is active.Important Notes:
#about
.To replicate list state changes while scrolling (like highlighting links based on scroll position):
section-about
, section-services
, etc.)#section-about
is-active
) to the matching navigation linkManual Class Management Required:
Webflow doesn’t auto-remove an active class from other items. Use the interaction settings to:
is-active
from sibling elementsIf you want smoother control (especially for complex interactions or dynamic elements), you can:
scroll
event listeners and IntersectionObserver
..is-active
class based on what section is in the viewport.Note: This approach is more flexible but requires JavaScript knowledge and won’t preview inside the Webflow Designer; test it on the published site only.
To set an active/current state for link blocks, use Webflow’s native Current class styling for page or anchor links. For more dynamic scroll-based highlights, use scroll interactions or custom code to add/remove active classes as users scroll through sections.