animation infinite cpu!!!

Why css animation infinite take all cpu 100% When remove it the cpu will be free just asking to know and what best practices to use css animation
6 Replies
b1mind
b1mind•15mo ago
do you have hardware acceleration on? if its off animations will not use the gpu. in your browser settings*
b1mind
b1mind•15mo ago
b1mind
b1mind•15mo ago
Also if you put it in a codepen we will be able to debug much easier 😄 Like if you are animating height/width its really taxing (and typically not recommended)
M@HeR
M@HeR•15mo ago
I have gpu acceleration
Jochem
Jochem•15mo ago
then without a codepen or something similar demonstrating the issue, there's nothing we can really do basically you're saying "my car uses too much gas" to a mechanic without bringing your car, or even telling them what model and year it is
M@HeR
M@HeR•15mo ago
I will make sample Inchallah