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

Check for multiple selectors with 'images' attribute #54

Open isaacalves opened 9 years ago

isaacalves commented 9 years ago

The default option for 'images' is for any img tag on the page. If I want to check against a background image, I need to set 'images' to the class of the elements that have a background image (or any images with that class).

Is there a way to tell BackgroundCheck to check against all img tags AND a certain class for background images?

One solution is to attribute a class for both img tags and elements with background images I want to check, but It would be better (cleaner) to use multiple selectors.

IlirBajrami82 commented 8 years ago

i need this one too. it would be great if it supports multiple selectors. i need it to select some child elements in my fixed navigation.

zagabona commented 8 years ago

Check #40 there's a solution there.