Gallery
Collage Gallery
A loose two-row photo collage that assembles itself on scroll and drifts in layers with the pointer.
npx motionsnack add collage-galleryCustomize
Background
<CollageGallery />Props
18 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { image?: { src: string; alt?: string }; title?: string; href?: string }[] | 10 sample photos | Photos fill the collage in order; every 10 photos start a new collage below. |
| buttonColor | string | light/dark class | Colour of the button. |
| buttonTextColor | string | light/dark class | Text colour of the button. |
| buttonRadius | number | light/dark class | Corner radius of the button, in px. Fully round when not set. |
| kicker | string | 'Gallery' | Small label above the headline. |
| title | string | 'Moments, pieced
together' | Headline. Use \n for line breaks. |
| description | string | 'A loose collage of recent work. Hover a photo to see what it is — the pieces drift a little as you move.' | Line under the headline. Leave empty to hide it. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| background | string | '#000000' | Section background. |
| maxWidth | number | 1280 | Widest the collage gets. |
| gap | number | 10 | Space between the photos, as a share of the collage width. |
| radius | number | 4 | Corner radius of the photos. |
| parallax | number | 18 | How far the columns drift with the pointer. |
| reveal | boolean | true | Fly the photos in from a scatter on scroll. |
| spread | number | 140 | How far the photos start from their place. |
| stagger | number | 0.05 | Delay between photos landing. |
| hoverZoom | number | 1.05 | How far a photo zooms on hover. 1 = none. |
| showLabels | boolean | true | Show the photo's label on hover. |
About Collage Gallery
A centred headline sits above a collage of ten photos in two offset rows: the top row stands on the centre line, the bottom row hangs from it, and some columns stack two photos. As it scrolls into view the photos fly in from a scatter and land centre-first; afterwards each column follows the pointer at its own depth. Hover a photo for a small label, and a button below leads on.
What's included
- Offset two-row collage
- Scatter-to-place reveal
- Layered pointer parallax
- Hover label on each photo
- Optional link per photo
- Button under the collage
- Type
- Animated gallery section for Next.js
- Library
- Sections · Gallery
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add collage-gallery