background-check
background-check copied to clipboard
Check if image is truly visible
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
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');
Thanks! That will work.