Pure CSS Masonry like photo gallery
npm install mm-masonryUsing css selector:
``css`
.mm-masonry {
--_col-width: 240;
--_gap: 8;
}
Or directly in the html tag:
`html`...
You can control the disable option by using the following css selector:
`css`
.mm-masonry {
--_display: block; / unset | flex | .../
--_gap: 0; / Or a value /
}
CSS Grid + image load event
Set image dimensions when onload` event in Javascript.
Demo: CSS Grid + image load event
The simplest way: with CSS Columns.