Re:jQuery or CSS3 transitions? Speed comparison + brief empi...
by pedalpete on Sunday January 15, 2012 @11:47AM
(#3467533)
I'd like to see a comparison between CSS3 and html5 canvas performance, as for a simple animation in this example, I think Canvas may be more applicable.
[ Parent
| on HN ]
Re:jQuery or CSS3 transitions? Speed comparison + brief empi...
by richbradshaw on Sunday January 15, 2012 @01:14PM
(#3467769)
The difficulty with canvas is that it can't really be dropped in to a site in the same way. A site that makes use of slides and fades using a JS library could patch the library to use transitions instead with only a few lines of code (well a few hundred perhaps). Using canvas requires dropping the accessibility benefits as well as having to replicate all the elements manually on canvas.
I agree though, this contrived example would surely work better with canvas.
Re:jQuery or CSS3 transitions? Speed comparison + brief empi...
by mcot2 on Sunday January 15, 2012 @01:40PM
(#3467832)
I actually want to know more about SVG than canvas. Since SVG already has the concept of translate, scale, ect... built in, are these hardware accelerated like CSS3 animations for DOM nodes?
Re:jQuery or CSS3 transitions? Speed comparison + brief empi...
by Achshar on Sunday January 15, 2012 @12:09PM
(#3467583)
agreed, canvas will probably perform better because it is made for animations where as DOM was not made with animation in mind. Plus canvas animations are, in some cases, hardware accelerated i believe?