Navigation bar show or hide according to scroll direction