PHP Class to create CSS Animation Sprites