add easing in and easing out