You can see whats happening here.. http://jsfiddle.net/gregguida/36SEZ/4/
Switch tabs for about 30 seconds and then come back, the animation gets totally out of hand.
I think this has something to do with the way the browser treats setInteval()
when the window doesn't have focus but I'm not sure if that's the case. I also don't know what to do about it. Any insight is appreciated.
Update: also tried using setTimeout
instead of setInterval
but I'm experiancing similar results
Thanks!