add direction scrolling class