Skip to content

Instantly share code, notes, and snippets.

@vflash
Last active August 29, 2015 13:57
Show Gist options
  • Save vflash/9638593 to your computer and use it in GitHub Desktop.
Save vflash/9638593 to your computer and use it in GitHub Desktop.
css filter
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feGaussianBlur stdDeviation=\'2\' in=\'SourceGraphic\'/><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>#grayscale");
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feGaussianBlur stdDeviation=\'2\' /><feColorMatrix type=\'saturate\' values=\'0.2\' /></filter></svg>#grayscale");
@vflash
Copy link
Author

vflash commented Aug 7, 2014

-webkit-filter: blur(2px) grayscale(0.9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment