Is there adaptive js script for the location of the pictures tile?

Hi all,

I need a script that set of pictures breaks into nice neat tile.
Found an old and simple:
https://github.com/ionelmc/jquery-gp-gallery

Works, but he never adaptive.
Has anyone seen a script that recalculates the position and size when resize page?

Thank you!
June 10th 19 at 15:59
3 answers
June 10th 19 at 16:01
Solution
Bingo!! thank you so much, exactly what you need!

Just need to be careful in the morning a couple of hours passed, but was not able to establish adaptability.
And only in the evening immediately caught my eye that need data attributes to set for the img, and image-wrapper.

Thanks again! - Gabrielle.Zulauf commented on June 10th 19 at 16:04
June 10th 19 at 16:03
a promising home page, but ...
1. Or I indicate in the settings and in css the width of a column or plug takes the column width the width of the first picture.
2. Ragged lower edge.

Looked at the examples, read the documentation, like at all. - Gabrielle.Zulauf commented on June 10th 19 at 16:06
1. Or I indicate in the settings and in css the width of a column or plug takes the column width the width of the first picture.
plugin adaptive. Look learn. I have it worked in conjunction with infinity scroll, and resize page is rebuilt. Another thing is that there is a bug with nadgrajeni picture.

2) Ragged bottom edge.
- You are inherently in the question is not raised as a problem. If you know the number of the picture, their relationship, perhaps they will be easier to push with a grid of div as a background image? - Gabrielle.Zulauf commented on June 10th 19 at 16:09
,
That's just look, learn.
2. the number of images is not known, background-image would be ideal, but pictures can not be cropped( - cali.Senger99 commented on June 10th 19 at 16:12
June 10th 19 at 16:05
Why not flex-box?
I think it is because pictures can be different heights... - Gabrielle.Zulauf commented on June 10th 19 at 16:08
So the script is easier, only the height of them in a flex box to align it would be =) - Gabrielle.Zulauf commented on June 10th 19 at 16:11
there is another problem. If you do flex-start, it will be a ragged right edge. If you do space between, the rows will be different, the horizontal distance between the pictures. - cali.Senger99 commented on June 10th 19 at 16:14
, https://jsfiddle.net/b48wsrau/6/ - Gabrielle.Zulauf commented on June 10th 19 at 16:17
Eh, if not for different spacing between pictures, that would be ideal. - Salvado commented on June 10th 19 at 16:20
, https://jsfiddle.net/h5c3k43j/9/ this is still an option, but all our powers - rhianna_Fee commented on June 10th 19 at 16:23

Find more questions by tags jQueryJavaScript