How to put a drop shadow on a nav bar when page is scrolled

I’d like to put a drop shadow on the nav bar only when the page is scrolled. When the page is scrolled back to the top, I’d like the drop shadow to disappear. I’d love to know the best way to accomplish that throughout all the pages.


Here is my public share link: *

Im checking that for you now… First thing I noticed tho was this though (quick fix):


1 Like

Looks like you already fixed that the nav lol.

Yes! I figured it out last night and forgot to post that I resolved it.
Many thanks for checking it out and apologies. Also, thanks for the catch on the overflow and the quick fix. Really appreciate that!

1 Like

I should mention the solution here:

I put a div with a drop shadow behind the navigation and gave it a class. Then put a scrolling animation trigger on it that set the opacity at 0% and then 100% when scrolled.


Yeah I saw that… I was like half way of writing you a full tutorial on how to do the exact same thing and then for some reason I decided to go back and look and I was like… Wait a minute. Looks like he already did that. And as I was explaining it I started noticing it and then deleted everything haha.