CSS Animations vs JQuery Animations

后端 未结 2 1317
轻奢々
轻奢々 2020-12-15 12:22

I almost always use JQuery animations for any web projects I work on, but I was wondering how CSS animations are different. I know the syntax is different (obviously), but w

2条回答
  •  -上瘾入骨i
    2020-12-15 12:58

    I think the main pro is that CSS animations are native. This means that they are going to call compiled code inside the browser and probably make use of any hardware acceleration that is available. This means that CSS3 animations are going to be faster and use less memory.

    Here's an interesting post on the subject from the developers of the Opera browser: https://dev.opera.com/articles/css3-vs-jquery-animations/

提交回复
热议问题