I was wondering if there are any libraries out there that do what the Compass sprite generator does? I absolutely love that feature of Compass, but I don't want the rest of the framework. I just want something that creates a sprite with a folder full of PNGs and maybe creates some CSS classes I can use to display the graphics in the sprite. I've done a little poking around, and I see a lot of sprite generators as web apps. Do people use these for high-traffic sites? Or do people generally maintain their own sprites using Photoshop or some better tool? Any info is most appreciated!
The main advantage of using image sprite is to reduce the number of http requests that makes our site's load time faster. The images also load faster making switching from one image to another on some event much smoother.
CSS Sprites are a collection of images that are combined into a single file that an HTML document can access. These images are then called into use within the HTML code to be displayed on the website.
To answer myself, yes, there are a few options:
https://github.com/jakesgordon/sprite-factory
https://github.com/aslansky/css-sprite
https://github.com/wellington/wellington
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With