Modify Animation.

MOdify the implementation of animation when changing the text.