Activate top nav links when scrolling single page with Foundation

40 Views Asked by At

If you see my Codepen you will see that if you click a link, the link will turn red and go to the anchor point section.

I would like to activate the links even when using the scrolling. Anyone knows how?

Other thing that worries me is that when the link is active red and I click in other part of the page the link turns white again.

I'm using Foundation.

$(document).foundation();
1

There are 1 best solutions below

3
On BEST ANSWER

You have to use Magellan, which provides this feature:

https://foundation.zurb.com/sites/docs/magellan.html