I’m having issue’s wrapping my head around the scroll interaction medium is using on article’s. As soon as you scroll up the nav bar appears, but as soon as you scroll down it disappears. Here’s an example: Hide header on scroll down, show on scroll up | by Marius Craciunoiu | Medium. If anyone understands how to create this interaction please let me know, thank you
Add a class to the “header” element (I just called it header in this instance) and style that header.
Then add a combo class of nav-up and style the position of the header when you want it out of view such as position: top of -60px (because the header is 60px tall in this case).
Thereafter, remove the nav-up combo class from the element.
Add a Transition setting for the “Top” position on your header element, this will set the speed/animation of the header elements position as it slides up and down. Without setting this the animation will not be smooth but rather look rigid, almost like a display: block, display: none style.