,

Activating Links When Scrolling Past Sections: A Step-by-Step Guide

Posted by






Section 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Section 2

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Section 3

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Section 4

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.



0 0 votes
Article Rating
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
alphamx
1 year ago

Great tutorial just one question… once you are on the last section and you want to go back to home section, the active class shows on each section when scrolling up. Is there a way to only show the active class if you jump from one section to another without adding this active class on each section ? Thank you!

Mariam Zakwani
1 year ago

You've been a great help, thank you.

OB
OB
1 year ago

Help please! When I scrolled down and now scroll up, all the links are highlighted, but the active one is not, I understand that this is because the active class was deleted, but I don't know how to fix and write it down (?