update animation.