Implement animation repeating to animationplayer