I have a webpage with at least four sections. My goal is to dynamically apply the active
class to the corresponding menu item when scrolling through each section. For instance, if the "About Us" section is visible on the screen, I want to mark the corresponding menu item as active. The same goes for other sections such as Gallery and Contact Us.
In addition to adding the active class, I also need to change the color and add a bottom border to the active menu item. It's important to note that I prefer not to rely on any external plugins or libraries.
You can check out this example where the active class and styles are applied to the navigation list:
Would it be feasible to achieve this functionality using jQuery?