Streaming live at 10am (PST)

Need help building a Navbar

This is way harder than it needs to be… I just want a sticky Navbar. Simply put, when you start scrolling the page it fades in a background. This works every time you navigate between pages - for example if you stop halfway through a page and navigate pushstate back and forth between another page - the navbar bg still shows.

It should only work for specific a classname. I want to make it transparent on the homepage and faded in on other pages.

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

I had it working for a while, but it was breaking when you use pushstate between multiple pages where the original scroll position was maintained. The background didn’t trigger the animation.

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