ScrollDir is a JavaScript library that allows you showing or hiding sticky elements based on scroll direction, it also allows tracking events on scroll direction, changing the direction attribute when scrolled significantly, as well as ignoring small scroll movements.