animation fix for infinite loop solutions
slight refactor + comment change
Merge pull request #690 from code-dot-org/animateTiming

[Finishes #73644624] animation fix for infinite loop solutions