added easing to the scroll function