May 23, 2014 07:14 pm GMT
Original Link: http://css-tricks.com/svg-use-external-source/
SVG `use` with External Source
Inline SVG is an awesome way to use SVG because, among other reasons, the individual shapes that make up the graphic can be scripted and styled. The shapes are right in the DOM. But does that mean we have to define those shapes right in the HTML on every page? Nope, we can <use>
to reference them from elsewhere. Ideally, that "elsewhere" is an external file, because that means that file can be cached by the browser, efficiency!
Here's …
SVG `use` with External Source is a post from CSS-Tricks
Original Link: http://css-tricks.com/svg-use-external-source/
Share this article:
Tweet
View Full Article