What you are trying to do can be done using sprite animations.
Basically, you can use jQuery to quickly change the background position of an element that creates an illusion of animation.
There is a simple little plugin for this, but you can also write yourself down easily.
http://spritely.net/documentation/
source share