Fixed sidebar navigation
-
Hi,
I’ve used this plugin to make a fixed sidebar navigation that uses this markup:
<nav> <ul> <li><a class="arrow-hover" href="#section1">Section 1</a></li> <li><a class="arrow-hover" href="#section2">Section 2</a></li> <li><a class="arrow-hover" href="#section3">Section 3</a></li> </ul> </nav>Would it be possible to make the navigation “active” through some additional script like seen on https://css-tricks.com/sticky-smooth-active-nav/ ?
So when you scroll to a section on the page, it adds a class “current” to one of the navigation links based on the users viewport.
I tried to implement the above solution but can’t get it to work. If anyone could help that would be great.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fixed sidebar navigation’ is closed to new replies.