udpate animation.