Shortening of animation code.