update the animation speed and position