How can one add drop shadows to Raphael.js objects?

后端 未结 5 622
轻奢々
轻奢々 2020-12-15 20:49

I would like to find out how to add blurry edged drop shadows to Raphael.js objects/paths. As far as I know it is not possible with the library as is but is there a work aro

5条回答
  •  伪装坚强ぢ
    2020-12-15 21:21

    I wrote a plugin that adds a drop shadow to an element by applying an SVG filter to it. It's based on the blur plugin.

    You can find it here: https://github.com/dahoo/raphael.dropshadow.js

提交回复
热议问题