3 ms·
I recently discovered the same issue in a webapp I develop... a simple CSS animation for a "loading" spinner was pegging the CPU. Using steps(n) with a low numb
by artursapek 10y ago
I recently discovered the same issue in a webapp I develop... a simple CSS animation for a "loading" spinner was pegging the CPU. Using steps(n) with a low number basically resolves the issue. https://css-tricks.com/snippets/css/keyframe-animation-syntax/#article-header-id-6 https://css-tricks.com/snippets/css/keyframe-animation-synta...
Kind of ridiculous that it's so easy to make this mistake.
- gigatexal 10y agoWith great power (flexibility of JavaScript) comes great responsibility.