I’m working on a site and I need to get the nav bar to change its background color has it scrolls up and down. When the page scrolls down it works fine, but when it scrolls back up the background remains the same.
I’m not sure what I’m doing wrong. I’ve done this before with past sites so I’m not sure what I’ve done wrong with this one.
here is a link