Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazy visibility determination, max-width and max-height #157

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hannasm
Copy link

@hannasm hannasm commented Sep 20, 2017

I have created a fiddle demonstrating the issue here: https://jsfiddle.net/8us8m1wb/1/

Using a css style with "max-height: 0; overflow:hidden" is an effective way to hide an tree in the page in a way that can be animated through css transitions.

I am using the 'container' feature as well. The parent container has max-height:0 (or max-width) and the child element is not displayed, but blazy still loads it.

Checking the width and height of the rect fixes this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant