Created
August 21, 2013 14:25
-
-
Save octavioamu/6295150 to your computer and use it in GitHub Desktop.
Firefox fallback to css filters
-webkit-filter: drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
filter: url(shadow.svg#drop-shadow);
This file contains 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 height="0" xmlns="http://www.w3.org/2000/svg"> | |
<filter id="drop-shadow"> | |
<feGaussianBlur in="SourceAlpha" stdDeviation="2.2"/> | |
<feOffset dx="12" dy="12" result="offsetblur"/> | |
<feFlood flood-color="rgba(0,0,0,0.5)"/> | |
<feComposite in2="offsetblur" operator="in"/> | |
<feMerge> | |
<feMergeNode/> | |
<feMergeNode in="SourceGraphic"/> | |
</feMerge> | |
</filter> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow! Thank you!