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: https://preview.webflow.com/preview/hautecode?preview=6f167c1929df7781d01cb265138735b0
(how to access public share link)