From the course: Creating Web Icons with SVG
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Overview of this method
- [Voiceover] There's a third method for adding SVGs to your site via SVG CSS sprites, and that's what we'll look at in this chapter. Whereas a regular SVG sprite is a single SVG with multiple symbols defined, and SVG CSS sprite is a single CSS document where each of the SVGs are defined in line as data URIs. That may sound a bit convoluted, but don't worry. It'll make sense by the end of the chapter. SVG CSS sprites are not easy to create manually, but that doesn't matter because you don't have to. In this chapter, I'll walk you through two different methods for automatically generating advanced SVG CSS sprites with proper backwards compatibility to all browsers, using a free command line tool called Grunticon. First I'll explain how to use the browser-based version of the tool called Grumpicon. If you don't want to use the command line, I'll show you how to display Grumpicon icons anywhere in your project. Then we'll look at how to use Grunticon and some other Grunt processes to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Overview of this method1m 28s
-
(Locked)
Generate cross-browser icons with Grunticon4m 46s
-
(Locked)
Display Grunticon SVG icons in HTML documents3m 27s
-
(Locked)
Generate cross-browser icons in the command line using Grunticon5m 6s
-
(Locked)
Display Grunticon SVG icons in HTML documents3m 59s
-
(Locked)
-
-