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

Change only part of the element color #1

Closed dmathieu closed 10 years ago

dmathieu commented 10 years ago

Nice library!

I've dragged the text element onto the black light on the middle picture.

screen shot 2013-09-23 at 11 23 51

It would be very nice if the text could then become white on the part which is above the light, and black on the white background.

kennethcachia commented 10 years ago

Thanks!

That's something I'm currently looking into. There are a couple of ways I can address this issue and I should be able to push a fix soon.

kennethcachia commented 10 years ago

Improved in v1.1.0 – complex backgrounds.