This issue is really causing me a headache and slowing down progress on my project because I can't seem to figure it out.
Currently, I am working on designing a mobile-friendly website and conducting tests in iOS7/OSX.
The layout I am aiming for includes a header, a navigation bar below it, and all the main content below that. My goal is to have the header smoothly disappear when the user scrolls down, and then have the navigation bar stick to the top of the browser. I've found that achieving this effect using just CSS3 isn't perfect, and using JavaScript causes the navigation bar to "snap" to the browser after scrolling stops. Additionally, I want the header to reappear whenever the user scrolls back up, regardless of their position on the page. This behavior is similar to the header and footer in iOS Safari browser, where they slide away when scrolling down and reveal themselves when scrolling back up.
My preference is to achieve this without using JavaScript, but it seems that might not be possible.
Could someone please guide me to a tutorial or provide instructions on how to accomplish this effect and what tools I need? I would really appreciate the help, especially ensuring it works smoothly on mobile browsers.