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

div - background-image #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

Is there any plan to make this work on an image that is set via background-image?

davort commented 10 years ago

Great idea, it would really make this aplicable to almost any background out there. Hopefully Mr. Kenneth will find the idea valuable and make it work.

kennethcachia commented 10 years ago

I'm currently working on a new version that supports css background images (code is on branch css-backgrounds). Check the example or grab the minified version.

It is not complete yet and has only been tested on Chrome. If you try it out, please keep the following in mind:

Supports

Limitations

Coming soon

kennethcachia commented 10 years ago

Available in v1.2.0