✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Repeat animation

I am using the last example from:

How can I play the animation repeatedly?
So once the play button is clicked it will continue playing until the pause button is clicked?