I'm currently revamping a website that features a header with 100% screen height, but I need it to shrink down to 0px when a user starts scrolling. The issue I'm facing is that once the header shrinks to 0px, the page content ends up slightly above the window's top edge. I've attempted using "window.scrollTo(0,0)" after the header collapses, which does bring everything back in place, but then I lose the ability to scroll further down. It's as if my page gets stuck at the very top. You can check out a demo here:
Does anyone have any suggestions on how I can enable continued scrolling on the page? Alternatively, is there a way to animate the header so that the page content doesn't overshoot beyond the top boundary?