We need a trigger to detect when the page is scrolled up or down and execute an action for each case.
It would be an easy way for showing or hiding the menu depending on the direction of the scroll similar to what Google does in this site: https://www.google.com/intl/en_us/about