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
CSS3 has built-in support for masonry grid layouts. This could be used to manage the layout of the gallery without JS. As a side-effect this would also solve issues like #35 where automatic crawlers don't find the images because they are loaded dynamically.
masonry-layout is currently only supported in Firefox, but other browsers might follow. We could keep the current approach as a fallback to ensure the gallery looks great everywhere.
I built a quick PoC based on this article and it looks promising. If there's interest to go down this path, I could invest some time to come up with a PR, or also help/review if someone else wants to build this.
The text was updated successfully, but these errors were encountered:
That sounds interesting. Thank you for pointing that out to me.
If we do that in the future, we have to check that we do not lose any functionality like lazy loading, filtering, etc. In the examples they have the images are arranged in columns, will rows (as we have it right now) work too?
I would prevere this JS-less approach to the current one when there is support for that in FF, Chrom(ium), Edge and Safari. I think it is currently to early to start any implementation, as even in Firefox this feature is hidden behind a flag: https://caniuse.com/mdn-css_properties_grid-template-rows_masonry
Having the old and new CSS3 approach mixed could lead to hard to understand and hard to maintain code.
CSS3 has built-in support for masonry grid layouts. This could be used to manage the layout of the gallery without JS. As a side-effect this would also solve issues like #35 where automatic crawlers don't find the images because they are loaded dynamically.
masonry-layout is currently only supported in Firefox, but other browsers might follow. We could keep the current approach as a fallback to ensure the gallery looks great everywhere.
I built a quick PoC based on this article and it looks promising. If there's interest to go down this path, I could invest some time to come up with a PR, or also help/review if someone else wants to build this.
The text was updated successfully, but these errors were encountered: