Created
March 25, 2017 15:52
-
-
Save rintoug/daaadc7b8d47b5dfe11653a9c528fa7b to your computer and use it in GitHub Desktop.
Cross-Browser Image Grayscale with CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg xmlns="http://www.w3.org/2000/svg"> | |
<filter id="grayscale"> | |
<feColorMatrix type="matrix" values="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"/> | |
</filter> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment