How do i change colour of menu elements while scrolling? :     I want to change the colour of menu elements while scrolling page for the 
    following template.I followed some method  but its not dynamic.How do i 
    change it to dynamic?

   [I attached the link of webpage][1]


  [1]: https://codepen.io/bharathkumar_sriram/pen/XRQpRo