I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I animate some elements, moving them around the screen modifying the “left/top” properties over a function called frequently (by a “setInterval”).
The performance is excellent on iOS, but really slow in most android devices.
Is there any way to improve the performance in that kind of animation?
thanks
setInterval is not the way for animations, use requestAnimFrame
http://paulirish.com/2011/requestanimationframe-for-smart-animating/