jQuery Dynamic Shadow Color
This is a basic jQuery plugin that can give any element a shadow color fade to its parent target element’s background color, based on Juani’s long shadow generator
Demo
How to Use
Add class “shadow-object” to the element that need shadow
Add class “shadow-section” to the element’s target parent
Add attributes to “shadow-section” element
- data-size: (Pixel) Size of the shadow
- data-fade: (Float) 0 means no fade
- data-opacity: (Float) 0 means transparent
- data-placement: (String) right-bottom, right-top, left-bottom, left-top
Dependency
License
MIT License