I'm a bit confused on migrating [this question](https://stackoverflow.com/questions/52892889/pause-resume-css-animations-when-switching-tabs) to Super User.

The OP had asked about _pausing or playing CSS animations when the browser tab is changed_. OP had also attached a code with it. When, I tested the code, it runs well for me **except** for once in 16-20 trials. I suspect that this problem could be due to _browser's internal bugs_ **or** _run-time errors_. And, therefore I think that this could be better handled on Super User, but I'm still not sure about it!

What do you think?