Gallery
Masonry Gallery
A five-column masonry of photos in their own proportions, each with a caption and a short line underneath.
npx motionsnack add masonry-galleryCustomize
Background
<MasonryGallery />Props
13 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { image?: { src: string; alt?: string }; title?: string; description?: string; href?: string }[] | 15 sample photos | One tile per item, dealt into columns left to right. Photos keep their own proportions. An empty list shows no tiles. |
| kicker | string | 'Selected work' | Small label above the headline. |
| title | string | 'A gallery that
lets the work breathe' | Headline. Use \n for line breaks. |
| description | string | 'Photos keep their own proportions and settle into columns. Add a caption and a line under each one — or leave them out.' | Paragraph next to the headline. Leave empty to hide it. |
| background | string | '#000000' | Section background. |
| columns | number | 5 | Most columns on a wide screen. |
| minColumnWidth | number | 200 | Narrowest a column may get; fewer columns are used below it. |
| gap | number | 12 | Space between the tiles. |
| radius | number | 6 | Corner radius of the photos. |
| showCaptions | boolean | true | Show the title and description under each photo. |
| reveal | boolean | true | Fade the tiles in as they scroll into view. |
| stagger | number | 0.07 | Delay between neighbouring tiles revealing. |
| hoverZoom | number | 1.04 | How far the photo zooms on hover. 1 = none. |
About Masonry Gallery
A headline and description sit above a masonry grid. Photos keep their natural proportions and are dealt into columns left to right, so they read in order; the number of columns drops on narrower screens. Each photo carries a title and a line under it, can link anywhere, zooms gently on hover and rises into view as you scroll.
What's included
- Masonry grid in reading order
- Responsive column count
- Caption and description per photo
- Optional link per tile
- Scroll reveal with stagger
- Hover zoom
- Type
- Animated gallery section for Next.js
- Library
- Sections · Gallery
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add masonry-gallery