Javascript Sprite Framework

sprite.js is an open source framework for working with JavaScript sprites more efficiently.

https://github.com/batiste/sprite.js

The library provides two rendering backends: HTML and Canvas. The HTML version, which displays sprites using DOM elements, is used by default because the Canvas backend is slower when running on Firefox, Opera and Chrome. According to the project’s notes on Github, “Canvas seems faster when there is a lot of transformations applied to the sprite.”

There are three demos, each with a system load counter:

Particle generator – http://batiste.dosimple.ch/sprite.js/test_particules.html

animated sprites

http://batiste.dosimple.ch/sprite.js/test_sprites.html?html=1

Input test

http://batiste.dosimple.ch/sprite.js/test_input.html