You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a vanilla JS demo that was linked somewhere here: https://codepen.io/desandro/pen/XgRpNr
I'm experiencing a bug sometimes.
I'm pretty much using the same code:
I saw your issue with Infinite Scroll and Masonry. A couple of things to try: First, ensure imagesLoaded is really waiting for all images to load before Masonry arranges them. Adding a delay, like setTimeout, before initializing Masonry might help. After each Infinite Scroll load, it's important to call msnry.appended(items) to let Masonry know about the new items. Also, double-check your CSS against the demo. Subtle differences, especially in dimensions and positioning, can throw off the layout.
EDIT:
I found a vanilla JS demo that was linked somewhere here: https://codepen.io/desandro/pen/XgRpNr
I'm experiencing a bug sometimes.
I'm pretty much using the same code:
I'm using the exact same CSS code from the codepen.
However sometimes the images are stacking on top of each other like this:
It doesn't happen every time, but enough to make it not stable enough.
I'm wondering what's going wrong, can someone help me out here?
This is the html (hbs) I'm using:
The text was updated successfully, but these errors were encountered: