Detecting scroll direction with JavaScript
Want to hide navigation bar when user scrolls down, and then again show it when user scrolls up? This is where you'd want to detect the scroll direction using JavaScript.
Passionate about code and the web, I have worked as a freelance developer for the past 17 years. During this time, I have helped design-oriented web agencies with technical tasks, including web and mobile development, technical SEO, and server maintenance.
Want to hide navigation bar when user scrolls down, and then again show it when user scrolls up? This is where you'd want to detect the scroll direction using JavaScript.
Linked list is one of the most simplest and most common data structures out there. Implementing linked lists in C is easy by using structs and pointers.
Latest jQuery UI comes with a new position() method that makes it easy to center any element vertically and horizontally.
Here's my Capistrano recipe for Passenger.