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

is there a way to detect after? #105

Open yellowlabsrl opened 6 years ago

yellowlabsrl commented 6 years ago

Hello :) is there a way to ( like a method for example) execute some code after background-check.js has started and finished?

thankyou for this great library!!!

AlfredJKwack commented 6 years ago

The presence of any of the below classes on your target element would be an indicator.


      dark: 'background--dark',
      light: 'background--light',
      complex: 'background--complex'