I managed to change the position of my navigation menu to ‘sticky’ and animate the background colour from blue to black when scrolling down. I also got the menu to return back to blue when scrolling back up.
What I want to know is, how can I achieve this menu - https://www.azaistudios.com/work/restaurant-lavenue
Pretty similar to what I achieved, however, no matter how far down the page you are, the nav menu background colour only returns back to its original state when you are at the top of the page. How can I achieve this?