discover · compare · collections · requirements · contribute · feed · watching · stats · help with your tokens
SamHerbert/SVG-Loaders · source
Snapshot 0 · 2026-11-04T12:47:23Z · HTML · MIT
Content fingerprint
c2e6746042d7cb6d5a5e78e0fb5451db64a1c3b29cf7164bb1eaea0d0dcd931dGitHub description at capture
Loading icons and small animations built with pure SVG.
README at capture
Example =========== All loaders may be previewed at: http://samherbert.net/svg-loaders NOTE: Chrome 45 intended to deprecate SMIL icons but has since [suspended](https://groups.google.com/a/chromium.org/g/blink-dev/c/5o0yiO440LM/m/mHtmsQxf2bIJ) that deprecation. Usage =========== [Download](https://github.com/SamHerbert/SVG-Loaders/archive/master.zip) or `bower install svg-loaders` ```html <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](https://github.com/svg/svgo). Adaptations =========== [React components by ajwann](https://github.com/ajwann/svg-loaders-react)