Last active
November 25, 2018 15:00
-
-
Save juliandavidmr/913117ede2870ffd53938dbb89f99424 to your computer and use it in GitHub Desktop.
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> | |
<filter id="dropshadow" height="130%"> | |
<feGaussianBlur in="SourceAlpha" stdDeviation="3"></feGaussianBlur> <!-- stdDeviation is how much to blur --> | |
<feOffset dx="2" dy="2" result="offsetblur"></feOffset> <!-- how much to offset --> | |
<feComponentTransfer> | |
<feFuncA type="linear" slope="0.5"></feFuncA> <!-- slope is the opacity of the shadow --> | |
</feComponentTransfer> | |
<feMerge> | |
<feMergeNode></feMergeNode> <!-- this contains the offset blurred image --> | |
<feMergeNode in="SourceGraphic"></feMergeNode> <!-- this contains the element that the filter is applied to --> | |
</feMerge> | |
</filter> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment