miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Variable images per row #334

Open JohnPAfr opened 4 years ago

JohnPAfr commented 4 years ago

Hello, I used Justified gallery for my website and I'm trying to have rows with variable number of images that I define. For exemple, row 1: 3 img, row 2: 4img, row 3: 2img, etc.

Is it possible with the actual Justified Gallery ?

jefftucker1952 commented 4 years ago

In a word, no.

What would the layout look like if the viewport were wider? Would the images all get bigger? What would happen on a smartphone? Would the images all get tiny, so you'd still have the same number on each row?

If you want to have a fixed number of images on each row, there's no reason to use Justified Gallery at all. Just do a regular HTML/CSS layout. But it's not going to be responsive to the viewport size, of course.