About this masonry layout
A masonry layout suits pictures of different shapes, because each one drops into whichever column is shortest instead of lining up in rows. Here it holds a pattern library. Twenty prints, from ticking stripes to shibori rings, are drawn as SVG pattern fills, so every tile is sharp at any size and the page loads no images at all.
The columns are worked out in JavaScript and every tile moves with a CSS transform, which is why filtering looks so calm. Choose Florals and the other tiles fade while the five flowers glide into new places one after another. The grid lives inside its own scrolling frame, so it fits a phone screen, and a mouse can drag it like a sheet of paper. Each tile opens a dialog with a large swatch, its colours and a button to order a sample.
Why the prompt works
- It explains the shortest column rule, the whole idea of masonry, in one line.
- It moves tiles with transforms and a stagger, so reflowing never jumps.
- It lists the patterns and colours, which keeps the grid looking like one collection.
- It covers touch and keyboard, captions that always show and arrow keys between tiles.
Where to use it
Portfolios, pattern and wallpaper shops, recipe collections, mood boards and any gallery where pictures come in mixed shapes.








