javascript - Active link while scrolling -


i'm trying add active link, while people scrolling, section on have active class.

i've been using fiddle post: change active menu item on page scroll?

i can't work in code though.

below have far, , website http://whitneyedenlewis.com

thanks!

whitney,

the fiddle post mentioned does work, need add id <ul> it's <ul id="top-menu">.

enter image description here

after adding , using code in aforementioned fiddle, see active class moving other links in navigation. there, you'll still have little more do, should answer question.

enter image description here


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -