Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <use xlink:href="#imageElement" filter="url(#innerShadowElement)"/>
  2. <def>
  3. <g id="imageElement">
  4. ...
  5. </g>
  6. <use id="shadowElement" xlink:href="#imageElement" transform="..."/>
  7. <filter id="innerShadowFilter" filterUnits="userSpaceOnUse">
  8. <feImage result="image" x="0" y="0" xlink:href="#shadowElement"></feImage>
  9. <feGaussianBlur in="image" stdDeviation="5" result="blur"></feGaussianBlur>
  10. <!-- Invert the alpha of the graphic and clip it to SourceAlpha -->
  11. <feComposite operator="out" in="SourceAlpha" in2="blur" result="inverse"></feComposite>
  12. <!-- The next two steps let us color the shadow -->
  13. <feFlood flood-color="black" flood-opacity=".5" result="color"></feFlood>
  14. <feComposite operator="in" in="color" in2="inverse" result="shadow"></feComposite>
  15. <!-- Place the shadow on top of the original image -->
  16. <feComposite operator="over" in="shadow" in2="SourceGraphic"></feComposite>
  17. </filter>
  18. </def>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement