3 ms·
My apologies if I come across the wrong way, but this doesn't take an article to explain. CSS3 transitions and keyframes are hardware accelerated and in most c
by geuis 15y ago
My apologies if I come across the wrong way, but this doesn't take an article to explain.
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.
- richbradshaw 15y agoI 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.