Slide header up if you scroll down and vice versa
问题 Update I made a repo on GitHub: https://github.com/yckart/Veil.js Big thanks to Sargo Darya and Edward J Payton. I've to create a header which slides up if you scroll down and vice versa. The problem is, that it jumps (if you are in the diff -range between 0-128 ). I can not figure out where the problem sits. Any idea how to get this to work correctly? Here's what I've done so far: http://jsfiddle.net/yckart/rKW3f/ // something simple to get the current scroll direction // false === down |