I'm wondering what would be the most efficient solution to animate sprites(images) moving on a fixed background : use DOM elements with absolute positioning or animate them on a canvas (with drawImage and clearRect) ?
The advantage I see in the first option is I don't have to worry about erasing old position before drawing the new one. Does it make sense ?
Do you see any other good alternative ?
Thanks
Edit: I want to focus on mobile devices. Does it make a big difference in terms of HTML5 support?