I have been working on getting the header to remain in place when scrolling down, then transition into view once I pass the next section. However, I am facing an issue where the transition only works while scrolling down and breaks when scrolling back up. Despite trying various classes based on scroll position, I have not been able to solve this issue. Using two menus would be a simple fix, but that is not something I am willing to consider.
If you'd like to see how it currently behaves, check out this video: