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.7k stars 299 forks source link

Compatibility with responsive images #194

Closed cywtf closed 8 years ago

cywtf commented 8 years ago

Hello,

I don't find anywhere a documentation to integrate this gallery with a responsive images solution, such as lazysizes.

I did some tests but they are not working: https://s.codepen.io/rootion/debug/ORPAxy

How we make this gallery work with data-srcset instead of img src? Or which responsive images approach would you suggest? I tend to think lazysizes is the best out there.

cywtf commented 8 years ago

Actually the reason because it wasn't working, if anyone is interested, it's because the images were not wrapped in a <a> tag. See #195 and the examples posted there.