SVG shadow cut off

前端 未结 3 449
北荒
北荒 2020-11-29 01:15

The SVG I\'m working with has a drop shadow via feGaussianBlur filter.

The shadow itself is displayed properly, but gets cut off on top and bottom edges.

Lik

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 01:59

    Add an attribute to the filter shadow svg tag:

    filterUnits="userSpaceOnUse"
    

    Final Output:

    
    

    Which makes the shadow absolutely positioned and visible outside of its container.

提交回复
热议问题