smoothscroll before the end of the video