Skip to content

Instantly share code, notes, and snippets.

@edsykes
Created November 27, 2014 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsykes/a422ec420558879a2f42 to your computer and use it in GitHub Desktop.
Save edsykes/a422ec420558879a2f42 to your computer and use it in GitHub Desktop.
better shadow when you have alpha in source image
<filter x="-70%" y="-50%" id="drop-shadow" height="250%" width="380%">
&gt;<feComponentTransfer xmlns="http://www.w3.org/2000/svg">
<feFuncA type="linear" slope="10.7"></feFuncA><feFuncR type="linear" slope="-10"></feFuncR>
<feFuncG type="linear" slope="0">
</feFuncG>
<feFuncB type="linear" slope="0"></feFuncB>
</feComponentTransfer>
<feGaussianBlur stdDeviation="15"></feGaussianBlur>
<feMerge>
<feMergeNode></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment