Implement the animation feature