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

pylonicon picture pylonicon · Oct 7, 2010 · Viewed 12.4k times · Source

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 around?

Answer

David Herse picture David Herse · Apr 26, 2012

You can use the Element.glow([glow]) to get a shadow effect. http://raphaeljs.com/reference.html#Element.glow