jQuery dynamic shadow color
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
dynamic_shadow_color.js
dynamic_shadow_color.min.js
plugins.js

README.md

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

Dynamic Shadow

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
  1. data-size: (Pixel) Size of the shadow
  2. data-fade: (Float) 0 means no fade
  3. data-opacity: (Float) 0 means transparent
  4. data-placement: (String) right-bottom, right-top, left-bottom, left-top

Dependency

License

MIT License