In the mobile version of a website, there is a fixed navigation bar at the top. The positioning of this navbar is achieved using position:absolute:
.navbar-fixed-top{position:absolute;right:0;left:0;z-index:1000;
The goal is to make the navbar invisible as the user scrolls down and visible again when they scroll up. While there are numerous examples available online demonstrating how to achieve this effect on desktop websites, such as:
http://jsfiddle.net/mariusc23/s6mLJ/31/
http://codepen.io/sunnyxyst/pen/DwgFm
Jquery sticky nav only when scrolling up
Unfortunately, these examples may not work properly on mobile devices.
Your assistance in resolving this challenge is greatly appreciated. Please note that it's not possible to use Bootstrap for this project.