Skip to content

dahoo/raphael.dropshadow.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Adds a drop shadow filter to the svg document.

Based on Raphael Blur Plugin

#Usage example:

For each element:

Use raphael.dropshadow.js

el.dropShadow(2, 3, 3, 0.5); // dropShadow(size, offsetX, offsetY, opacity = 1)

For sets:

Use raphael.dropshadow.js

set.dropShadow(2, 3, 3, 0.5);

For styling with CSS:

Use raphael.dropshadow.filter.js

Code:

paper.addDropShadowFilter(2, 3, 3, 0.5);
...
el.node.setAttribute("class", "dropshadow");

CSS:

.dropshadow {
  filter: url(#dropshadow);
}

About

Plugin for Raphaël to add a drop shadow to an element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published