dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 356 forks source link

Lazy Load For Containers Hidden With MAX-HEIGHT: 0 #127

Open hannasm opened 7 years ago

hannasm commented 7 years ago

I have a container that is made to be 'invisible' via a css "max-height: 0px;". This allows css transitions and animation effects while taking up 0 space in the rendered document.

It appears that blazy is detecting the content within this container as visible even though this is not actually the case.

It would be really nice to have this scenario included in the default visibility determination. If that's asking too much, maybe you can just provide an option for enabling this type of visibility determination on an as-needed basis.