How do I hide the header on my scroll?
The function toggleHeader()
This function receives the direction and scroll amount as parameters. It adds the class hide when the direction is down and scroll amount is greater than 52px (the header height). Otherwise, it removes the class hide.