While developing my app using PhoneGap and jQuery, I encountered a dilemma regarding animations.
Initially, I relied on what I knew best - jQuery animate - to create smooth movements. However, discussions about hardware acceleration caught my attention.
My simple task involved moving a div to the right upon page load:
$("#"+that).find('.captionShine img').animate({left: '550'},700);
This led me to discover jQuery-Animate-Enhanced, a plugin that transforms these animations into CSS3 transitions, potentially benefiting from hardware acceleration.
As I delved deeper into CSS3 animations, questions arose about the distinction between transitions and animations. Can CSS3 animations leverage hardware acceleration? Or is it limited to transform: translate3d(0,0,0);
?
Do I simply need to apply translate3D to any element I wish to hardware accelerate?