I mean, CSS animations are cool, but CSS3 compliance is annoyingly un-standard. but, ignoring all the issues with browsers and their inability to be up-to-date with the latest W3C,
Is there some sort of performance advantage over jQuery animations?
Why are they being implemented?
As a general rule of thumb, whenever JavaScript can be avoided and the same result achieved, it should be avoided.
It's always preferred to use the native browser abilities as it will usually be better performance-wise, plus it will generally look better.
CSS animations have the benefit of potentially being hardware accelerated. Here's a demo of Scripty2 (I know, it's not jQuery - but same principles) that demonstrates this very well.
http://scripty2.com/hardware-acceleration/
CSS animations can be accelerated by the GPU, whereas Javascript animations aren't. If You know without a doubt that your user base will have support for the css version of your animations, it makes a lot of sense to choose css.
In the case that you need to support older browsers, javascript is the right call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With