Streaming live at 10am (PST)

Making a sticky nav bar transition smooth and not instant

Hey All,

So I have a sticky nav bar via a “while page is scrolling” animation. It looks exactly how I want it but I would like to smoothen things up a bit rather than have it just appear as white the moment you scroll down.

And no, I am not looking for it to get more white the further you scroll, what I need is this:

  • The moment a user scrolls, it triggers an opacity interaction of some sort.
    This site does it well

Any thoughts?

Here is my public share link:

Look into using the “scroll into view” element trigger instead of the “while page is scrolling” page trigger. I’ve typically attached the animation to the hero element (when it scrolls out of view you show the opaque nav, and show the transparent nav when it scrolls into view) - just play around with the offset so once you start scrolling it triggers and once you’re about at the top is reverts.

Just holler if you can’t get it working and I’ll walk through the process with a screen recording.