Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
SERGIO RODRIGUEZ
17,532 PointsIs there such thing as SVG sprites? Can compass help build and use them?
I'm aware of the benefits image sprites bring to your site's performance. I'm also aware that Compass can help build and use image sprites easily.
BUT
Can image sprites be created for SVGs? Can I use Compass for this? With the small sizes of SVG files, is it worth the trouble of creating a sprite sheet?
1 Answer
Sean May
9,547 PointsYes, you can assemble SVGs into a sprite, as explained by this wonderful tutorial at CSS Tricks. It looks like Compass doesn't support spriting right now, but you can assemble them via a Grunt task.