3 ms·
JS tends to be slower to load, parse and run than CSS. Additionally, animations are often tightly linked to your page styles which are set in CSS. It’s easier
by paulhebert 1y ago
JS tends to be slower to load, parse and run than CSS.
Additionally, animations are often tightly linked to your page styles which are set in CSS. It’s easier to reason about them if they’re all in the same file and language instead of split across CSS and JS.