desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.41k stars 2.11k forks source link

Load image after another #1097

Closed e-anima closed 5 years ago

e-anima commented 5 years ago

Hi, i have just a simple question because i could not find anything. Is it possible to start loading the images one after another right in the moment the dom is loaded?

I guess it is not possible because mansory does not know the sizes for the grid until all images are loaded?

Thank you

desandro commented 5 years ago

See demo https://codepen.io/desandro/pen/kwsJb and explanation in https://github.com/desandro/masonry/issues/501#issuecomment-34583942

e-anima commented 5 years ago

Thank you very much. I will check that.

e-anima commented 5 years ago

Am i right that you can NOT use this with a fluid layout when using width: 20% on ".item" and option "percentPosition: true,"

desandro commented 5 years ago

This technique will work with fluid sizing.