-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Please fix overlapping images on lazy load, I am using Lozad.js for lazy loading, #1189
Comments
I'm having the same issue, sometimes they just start overlapping. I "fixed" it by adding setInterval which reloads the msnry layout. Not really a good solution, but it's the only way I got it working at this moment. setInterval(() => {
msnry.layout()
}, 100); Hopefully this gets fixed soon. |
I have the same issue, I hop it get fixed.
|
im not using lazy load either, but my grid images loads overlapped Hi there My grid keeps loading with half the picture on top of one another, and cannot understand why? when you resize the window the grid reconfigures perfectly, why can it not just load right the first time... im confused where i have gone wrong
|
hey there, im just wonder about your "fix", where would i put that code? where would i put this code
I tried to place it here, at the bottom
(sorry if i sound stupid but if you do not know javascript that well, then quoting a section of code to novice is meaningless) my grid is absolute mess and appears to be getting worse as i add more images |
A pure CSS workaround is to assign a fixed height for images, the drawbacks is that visitors may won't see the full picture. I've a image viewer on pages, so this seems doesn't matter to me.
// change the class name as yours
.my-grid-img {
height: 320px;
object-fit: cover;
} |
please help me to fix this, I am using Lozad.js for lazy loading
The text was updated successfully, but these errors were encountered: