# Highlight nav links when scrolling a static page

**URL:** <https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179>\
**Category:** Shapely\
**Created:** [February 19, 2018, 6:24pm UTC](https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179 "2018-02-19T18:24:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![giogiuliano](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/g/df705f/32.png) [@giogiuliano](https://colorlibsupport.com/u/giogiuliano)\
**Post date:** [February 19, 2018, 6:24pm UTC](https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179/1 "2018-02-19T18:24:49Z")

</div>

Hi,  
I have a static page on my [website](http://giogiuliano.com/) with different parallax sections. Each section has a custom link in the navigation bar. I would like to highlight the section in the navigation when scrolling the page, such as with a coloured bar underneath, and/or when clicking on a section on the navigation bar. I have tried to adapt the CSS found [here](https://codepen.io/joxmar/pen/NqqMEg) but without any success unfortunately.

For the sake of clarity, it’s not necessary that the section in the page is highlighted when it is selected on the nav bar (like in the linked example) but only that the indicator in the navigation bar is moving when scrolling the page.

Thank you in advance for your support  
Gio

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [February 19, 2018, 7:19pm UTC](https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179/2 "2018-02-19T19:19:05Z")

</div>

Hello there,

I hope you are doing well today.

To be clear, you want to have the menu items have a highlight effect only when the page is scrolled?

Best Regards,  
Support

---

<div class="post-metadata">

**Author:** ![giogiuliano](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/g/df705f/32.png) [@giogiuliano](https://colorlibsupport.com/u/giogiuliano)\
**Post date:** [February 19, 2018, 7:30pm UTC](https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179/3 "2018-02-19T19:30:02Z")

</div>

Hello, thanks for the prompt reply.

I’d like to have the highlight effect always on for all the sections and not only when the page is scrolled. Precisely, when the website is first opened the bar should be under “Profile” in the menu and it would follow the page scrolling until the bottom (“Contact”). If the mouse is over another item in the navigation bar, the highlight effect would not be present until the item is clicked but only the hover effect. Not sure this is clear but basically the same behaviour for the menu in the [example](https://codepen.io/joxmar/pen/NqqMEg) above.

Thanks

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [February 20, 2018, 5:53am UTC](https://colorlibsupport.com/t/highlight-nav-links-when-scrolling-a-static-page/20179/4 "2018-02-20T05:53:16Z")

</div>

Hey there

Great feature!  
Im so sorry to say but currently this is not possible in our theme, customization is definitely required to achieve this behavior ☹
