Support repeat animation.