How can I make setInterval also work when a tab is inactive in Chrome?
On most browsers inactive tabs have low priority execution and this can affect JavaScript timers. If the values of your transition were calculated using real time elapsed between frames instead fixed increments on each interval, you not only workaround this issue but also can achieve a smother animation by using requestAnimationFrame as it can get … Read more