Gallery
Spiral Gallery
Photos wound onto a 3D spiral that turns and climbs as you scroll, under a classic headline.
npx motionsnack add spiral-galleryCustomize
Background
<SpiralGallery />Props
20 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { image?: { src: string; alt?: string } }[] | 18 sample photos | Photos wound onto the spiral; they repeat until it is full. |
| 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 | 'Selected work' | Small label above the headline. |
| title | string | 'A spiral of
recent work' | Headline. Use \n for line breaks. |
| description | string | 'Scroll and the photos wind around you — campaigns, portraits and personal projects from the last year.' | 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. |
| cardWidth | number | 210 | Width of a card on a wide screen. Cards are 4 : 5. |
| cardRadius | number | 10 | Corner radius of the cards. |
| radius | number | 460 | Radius of the spiral on a wide screen. |
| perTurn | number | 12 | Cards in one turn of the spiral. |
| rise | number | 0.2 | How far each card climbs, as a share of its height. |
| tilt | number | 10 | Tilt of the spiral towards the viewer. |
| perspective | number | 1500 | Camera distance. Smaller is more dramatic. |
| scrollTurns | number | 1.2 | Turns the spiral makes while it scrolls past. |
| scrollLength | number | 2.2 | Scroll distance the spiral stays pinned for, in screen heights. |
| drift | number | 0.12 | Idle spin in cards per second. 0 keeps it still. |
| backDim | number | 0.65 | How much the cards facing away fade. |
About Spiral Gallery
A centred headline, line and optional button sit above a pinned stage. On it, photo cards are wound onto a tilted helix around a vertical axis: as the page scrolls, the spiral turns and the cards travel along it, the ones facing away fading back. A slow idle spin keeps it alive between scrolls, and the stage fades out at the top and bottom.
What's included
- 3D helix of photo cards
- Scroll-driven spin and climb
- Pinned stage while scrolling
- Idle drift
- Back cards fade away
- Classic headline above
- Type
- Animated gallery section for Next.js
- Library
- Sections · Gallery
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add spiral-gallery