No description
Find a file
Sam Herbert 561eacac2f
Merge pull request #28 from obeattie/patch-1
Fix link to blink-dev discussion in README.md
2025-01-02 10:41:35 -05:00
site-assets/images move homepage 2014-11-27 11:25:31 -05:00
svg-loaders fix heart icon for FireFox 2014-12-10 17:07:47 -05:00
.gitignore add grid, bars, cirles. update site, add bower 2014-11-22 02:48:46 -05:00
bower.json Remove moot version property from bower.json 2015-06-11 21:04:36 -04:00
index.html fix text-indent 2014-12-09 07:55:03 +01:00
LICENSE.md Update LICENSE.md 2014-12-17 13:33:08 -07:00
README.md Fix link to blink-dev discussion in README.md 2023-07-25 12:09:15 +01:00

Example

All loaders may be previewed at:

http://samherbert.net/svg-loaders

NOTE: Chrome 45 intended to deprecate SMIL icons but has since suspended that deprecation.

Usage

Download or bower install svg-loaders

<img src="svg-loaders/puff.svg" />

An icon's color can be manipulated by changing the fill attribute in the SVG file.

<svg fill="#fff" width="140" height="64" viewBox="0 0 140 64" xmlns="http://www.w3.org/2000/svg">

Note: Not all browsers support SVG, or more specifically, animated SVGs. Check (http://caniuse.com/#feat=svg-smil) to make sure you're good to go. If not, you may want to implement a fallback.

Minify

All SVG files are fairly small in size, but you can make them even smaller by minifying with something like SVGO.

Adaptations

React components by ajwann