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

Check if image is truly visible

Open tadaskarpavicius opened this issue 10 years ago • 2 comments

Hey, when image is outside element's with overflow:hidden boundries (a gallery in my case), it is still visible to this plugin. This might help: https://github.com/UseAllFive/true-visibility

tadaskarpavicius avatar Apr 30 '14 01:04 tadaskarpavicius

Thanks!

Yes, at the moment there are very basic checks in place to determine if the image is still visible or not.

You can overcome this by refreshing the images attribute (ex: after a gallery transition) as follows, but it depends on your gallery implementation:

BackgroundCheck.set('images', '.gallery .active');

kennethcachia avatar Apr 30 '14 23:04 kennethcachia

Thanks! That will work.

tadaskarpavicius avatar May 01 '14 12:05 tadaskarpavicius