Re:jQuery or CSS3 transitions? Speed comparison + brief empi...
by richbradshaw on Sunday January 15, 2012 @11:22AM
(#3467466)
I agree - this is part of a tutorial, and these examples are really to prove this point.
Animations using javascript were great when we didn't have anything else, but nowadays they should only be used in browsers without support.
What would be really cool would be a DOM method that tied into the animation code that powers transitions.
CSS3 transitions and keyframes are hardware accelerated and in most cases native to the browser.
Doing anything with javascript and the DOM is single threaded and expensive.
If you are using jQuery, look at cssHooks for nice fallbacks to js animations if you feature detect for particular effects.