I am wondering if there is a performance difference using CSS Transitions or any of the various JavaScript animation libraries? ( script.aculo.us , scripty2 , jsAnim , MooTools , $fx , etc.).
I tried various tests in Safari and Chrome, but actually I don't see any difference. I thought CSS transitions should be hardware accelerated.
Update
I tried using Scriptaculous' Effect.Fade on 5 different DIVs (each of which contains a canvas with some lines). Doing the same thing using CSS transitions, I see absolutely no difference in performance. Both were very smooth with one DIV / Canvas, but both of them are very slow when I do more than 2 at a time.
I tried this on Safari 4, 5 (OSX), Google Chrome 5 and FireFox 3.7pre. The same results in all directions.
In response to UpHelix's answer, you are not just limited to hover , etc. You can trigger a transition by changing any transitionable style. For example, set the opacity of an element in JavaScript (after that you specified transitionPropery and transitionDuration for this element).
javascript css css3 animation
desau Jun 08 '10 at 17:33 2010-06-08 17:33
source share