Set repeatCount property.
Number of times the animation will play.
If set to 0, the animation will repeat endlessly.
Set repeatCount property.