Sprite generation using Lemonade

Roy Tomeij by Roy

We often use CSS sprites to make a web site render as fast as possible. This used to be a tedious process of cropping images, putting them in one giant image file and calculating (and remembering) the offset. Not any more! We recently discovered Lemonade, a gem that generates sprites automatically, does all the calculations and updates the CSS. Its usage is really simple: instead of "background-image" you just use "sprite-image" (with some additional, optional parameters) and Lemonade takes care of the rest. Highly recommended!

80beans is one of the premier Ruby consultancies in The Netherlands and a regular sponsor of community events. We invest in promising start-ups via our start-up program.

With SliceCraft we're the only company in the world specialized in writing front-end code using Haml, Sass, Compass and CoffeeScript based on PSD's our clients provide, delivering code that's ready to be used in the Rails asset pipeline.

blog comments powered by Disqus