Suppose I have a folder with an image sequence of pngs generated by Adobe Flash or After Effects, and you want to animate it in HTML/CSS.

This folder is in "~/Desktop/animations/img"

I would open Terminal, navigate to the "animations" folder:

cd ~/Desktop/animations

And run the spritefy command:

spritefy -n sprite -s img/

It will generate a folder called "sprites" in "~/Desktop/animations/sprites", containing 3 files: sprite.png, sprite.css and sprite-compressed.css, and a folder called "scripts" which contains the jquery plugin to control the css animation.

To test the animation, just create an HTML file, load the css file into it, and assign a class to an element, where the name of the class is the name of the [sprite]-animation, eg: