Adding class to the element on scroll

I’m trying to replicate the effect on the navbar from this site:
Basically, once the navbar reaches the top of the page it gets assigned another class.

Is there a way to replicate this without creating a duplicate navbar?

Here is my public share link: LINK
(how to access public share link)

Do you mean sticky navbar?

Currently the only way to add a class to elements on live site is via custom code.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.