Answer: canvas + RequestAnimationFrame. Here is a great tutorial: http://www.williammalone.com/articles/create-html5-canvas-javascript-sprite-animation/
I was looking for a html5 + javascript 2d project to join a few months ago. If you are interested, I would like to collaborate with you on this project. Just let me know and enjoy the tutorial.
You can create a simple animation loop creating a canvas in your html document:
<canvas id="cvs"></canvas>
This will be your "playground"
Then you can create a javascript file that defines the game engine. You can load an external image inside an image element as follows:
var myImage = new Image();
myImage.src = "my-sprite-animation.png";
:
var mySprite = sprite({
context: canvas.getContext("2d"),
width: 100,
height: 100,
image: coinImage
});
requestAnimationFrame :
function gameLoop () {
window.requestAnimationFrame(gameLoop);
mySprite.update();
mySprite.render();
}