background-check icon indicating copy to clipboard operation
background-check copied to clipboard

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.

Results 72 background-check issues
Sort by recently updated
recently updated
newest added

Fixes #57 by ignoring pixels outside of the viewport when calculating brightness. I think the issue is in `calculatePixelBrightness()`. The following lines get the dimensions of the target image and...

Hello, Could you please check the error ? Is that something possible to resolve. I use CDN and I guess that would be the issue. background-check.min.js?ver=5.3:5 Uncaught DOMException: Failed to...

``` $('#carouselExampleIndicators').bind('slide.bs.carousel', function (e) { console.log(e.relatedTarget); BackgroundCheck.refresh(e.relatedTarget); }); ``` I'm getting next image that will be shown after slider complete sliding with e.relatedTardet. It is Target element injected into event...

Since you have a package.json, you should probably publish your package to the registry, so browserify users can `npm install` your package and use it properly. You should add a...

Hi, I've just stumbled across this and I can't seem to get it working at all - I've got a page full of `background-images`, and I need the fixed nav...

Weirdly, this is working on two thirds of my pages but on this page in particular (one of many) https://www.moreorlessmag.com/fashion/what-happens-when-life-gives-you-lemons/ ``` BackgroundCheck.init({ targets: '.fixed-nav, .fixed-nav, .fixed-nav, h1.h1', images: '.hero, .wp-image,...

Hi, I want to select a specific area of the image to get the brightness. Is it possible to select a specific area of the image - top, and bottom?

Hi Kenneth, great plugin! But when using images with srcset (with or without polyfills like picturefill or lazysizes/respimage) detection is not working correct. Also errors are thrown (IndexSizeError: Index or...

I get no errors in console but no action from the plugin either. At http://cinemafrica.se/ I have added the class "target" to the fixed header, and added it when I...

Would be nice if the plugin could work against solid colours too. That could be useful specially on sliders when sometimes you just a solid colour instead an image.

enhancement