adding duration to animated scrolling