+8  A: 

Set it as a background image and manipule the background position.

Update: As seth mentioned, the technique is called CSS Sprites. Searching google for animation with css sprites turns up some good results.

Chris Pebble
It's called CSS sprites. here's a tutorial about it. http://www.alistapart.com/articles/sprites
seth
+3  A: 

Here's an article from SitePoint on sprite animation using jQuery.

wongo888
+1  A: 

There are at least two techniques

  • Use image as background
  • Use CSS clip

Here is a good example of use of first technique.

Cleiton