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

Checking the color for background-image and image #83

Open ghost opened 8 years ago

ghost commented 8 years ago

Hey everyone. I have a problem, probably on my side of the images will be displayed in two ways. As background-image in style.css and marker <Img src = "images.jpg">

I use such code

document.addEventListener('DOMContentLoaded', function () {

// Specific images
BackgroundCheck.init({
  targets: '.fixed-nav',
  images: '.thumbnail'
});

});

However, it works only for background-images.

And I would like to use this two ways.

I will be grateful for your help.

bruisedstudio commented 6 years ago

Hey, did you fix this?