How do I split an image using Javascript + CSS?
3 answers
Set it as a background image and process the position of the background.
Update: As seth mentioned, this method is called CSS Sprites. Searching google for animation with css sprites gives good results.
+8
source to share