CSS and JavaScript animation performance differences

Pubblicato il: 16 febbraio 2014
sul canale di: Jeremy Kahn
1,849
31

This is a demonstration of some interesting performance differences I found between CSS and JavaScript animations. I used Chrome DevTools to demonstrate the quantifiable advantages of using CSS over JavaScript. It seems that CSS is much more efficient with memory and CPU usage.

This isn't to say that JavaScript animations are fundamentally worse than CSS, but this video shows that there are performance gains to be had with pure CSS-based animations.

I used Rekapi to set up the test environment: http://rekapi.com/

Here's the code for the test itself: https://github.com/jeremyckahn/animat...


In questa pagina del sito puoi guardare il video online CSS and JavaScript animation performance differences della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Jeremy Kahn 16 febbraio 2014, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,849 volte e gli è piaciuto 31 spettatori. Buona visione!