4 ms·
This reduces to the same problem mentioned above (which is essentially the halting problem). The browser has no way of predicting which elements you will add or
by ender7 12y ago
This reduces to the same problem mentioned above (which is essentially the halting problem). The browser has no way of predicting which elements you will add or remove these classes from.
Automatic preparation would be possible for transforms/animations that are applied in pseudo selectors such as :hover, but not in any other cases.