“Reverse” sticky header
问题 I am trying to implement a header that is originally fixed and stays on top, then, as a certain element or scrolling position is reached, it will scroll out of the viewport as if it were "normal" content. What I did until now is this code using the Jquery Waypoints plugin: $('h1').waypoint(function(direction) { $(".header-container").slideToggle(); }); It basically animates the header out of sight as soon as a certain element (in this case h1 ) is reached. But I want it to be scrollable by