Adds class "up" or "down" based on which way the user is scrolling.