setTimeout continues in hidden Chrome tab

 I used 'setTimeout' to run a 20 second animation again two minutes after it first starts.


But if I change tabs in Chrome after a a few seconds and come back to the original tab after a few minutes, then the first and second animations run together.


It seems the hidden tab freezes but 'setTimeout' still counts down the seconds. 



Comments

Popular posts from this blog

How a CSS fish animation works

Simple animation spacing out letters in an centred phrase

Selecting adjacent elements on :hover with CSS