Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/grayscale
Turn a <div> background-image or an <img> to grayscale
https://github.com/component/grayscale
Last synced: 13 days ago
JSON representation
Turn a <div> background-image or an <img> to grayscale
- Host: GitHub
- URL: https://github.com/component/grayscale
- Owner: component
- Created: 2013-04-02T22:58:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-09T00:45:18.000Z (over 11 years ago)
- Last Synced: 2024-05-08T17:11:20.687Z (8 months ago)
- Language: JavaScript
- Homepage: http://component.github.io/grayscale/
- Size: 188 KB
- Stars: 7
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# grayscale
Turn a <div> background-image or an <img> to grayscale
![](https://dsz91cxz97a03.cloudfront.net/r3YY72AGa3.png)
## Installation
$ component install component/grayscale
## API
### grayscale(el, [fn])
Turns the `"src"` of an `` tag, or the `background-image` of any other kind
of element, to _grayscale_.## License
MIT