7 ms·
Alternatively, could use an IntersectionObserver to stop and start it.
by lelandfe 5y ago
Alternatively, could use an IntersectionObserver to stop and start it.
- dspillett 5y agoThat too if off-screen animation is causing excess CPU use. Though the loop than ends or only results in occasional animation has another rather nice benefit: less stuff jiggling around to drag my attention away from what I'm actually trying to look at. And using that will break the articles “with pure CSS” intent.