Contraction and expansion animations done when the scrolling ends