GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

03A Grid Span Computed from Each Image Ratio

Set the row unit to 8px and use the card height plus gap, rounded up to row units, as the span, and grid alone yields a brick shape without any JavaScript placement.

Best forGalleries with mixed image ratios

ROW_UNITGAPSPAN_BIASCOLUMNS
A Grid Span Computed from Each Image Ratio
Open in a new tab

03 A Grid Span Computed from Each Image Ratio — Measured area 60.184% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · CSS Masonry Layout: 9 Ways to Pack Uneven Cards

The post this demo lives in

CSS Masonry Layout: 9 Ways to Pack Uneven Cards - preview of all 9 demosCSS Masonry Layout: 9 Ways to Pack Uneven CardsA css masonry layout of one columns or grid line scrambles order and teleports cards on resize — scenes 01, 02 and 04 fi See all demos in this post

If you like this effect - similar demos