Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/netbek/nb-icon

AngularJS directive for scalable icons (SVG with PNG fallback)
https://github.com/netbek/nb-icon

Last synced: about 2 months ago
JSON representation

AngularJS directive for scalable icons (SVG with PNG fallback)

Awesome Lists containing this project

README

        

# nb-icon

AngularJS directive for scalable icons (SVG with PNG fallback)

## Notes about SVG and ``

* One cannot override an existing fill color of `` or its child elements. SVGs that should be colorized should not have a `fill` attribute.

## Compatibility

One-time bindings require Angular 1.3+

Tested in:

* Chrome 40
* Firefox 35
* IE 9
* Opera 12
* iOS 6 Safari

## Development

Possibly useful in future:

* https://github.com/iconic/SVGInjector

## Ports

jQuery https://github.com/netbek/rh-icon

## Credits

* Demo icons by [IcoMoon](https://icomoon.io) (CC BY 4.0 or GPL)