Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/netbek/nb-icon
- Owner: netbek
- License: agpl-3.0
- Created: 2015-01-17T18:11:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-13T00:47:01.000Z (almost 10 years ago)
- Last Synced: 2024-10-15T08:48:54.994Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 371 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)