kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 282 forks source link

Add options for a callback function #59

Open smilledge opened 9 years ago

smilledge commented 9 years ago

Added a callback function option which receives the target element, class and if the background is complex.

Related issues: https://github.com/kennethcachia/background-check/issues/52 https://github.com/kennethcachia/background-check/issues/56