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

How do I force a refresh when using a fading slideshow. #51

Closed joneslafuente closed 9 years ago

joneslafuente commented 9 years ago

It will update if I resize the browser but I wondered if it is possible to update as images fade through. Otherwise excellent code. Thanks.

kennethcachia commented 9 years ago

Thanks!

Try calling BackgroundCheck.refresh(); when the image fade transition is complete.