Wednesday, 28 August 2013

Is there an SVG icons manager library?

Is there an SVG icons manager library?

I'm eager to use SVGs for icons, however I really don't like how
repetitive and impractical it is to use Raphael JS alone for this.
I imagine there would something like this:
JS:
SVG.load(['facebook.svg', 'twitter.svg', 'pinterest.svg'])
HTML:
<span class="facebook.svg" data-fill="blue"></span>
Then whenever I use a class with the name of the SVG icon, it'd
automatically append the asset into it, even if it was dynamically loaded
through AJAX.
Anyone in the JS community made this available?

No comments:

Post a Comment