Gallery
Portrait Strip
A strip of portraits where one grows in the middle with its name above and role below.
npx motionsnack add portrait-stripCustomize
Background
<PortraitStrip />Props
14 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { image?: { src: string; alt?: string }; name?: string; role?: string; location?: string }[] | 9 sample portraits | One tile per person. The open tile shows its number and name above, role and place below. |
| kicker | string | 'Portraits' | Small label above the headline. |
| title | string | 'People behind
the work' | Headline. Use \n for line breaks. |
| description | string | 'A series of portraits from the last year. Pick anyone in the strip to bring them forward.' | Paragraph next to the headline. Leave empty to hide it. |
| background | string | '#000000' | Section background. |
| tileWidth | number | 164 | Width of a closed tile on a wide screen. |
| activeScale | number | 1.6 | How much bigger the open tile is. |
| gap | number | 14 | Space between the tiles. |
| radius | number | 0 | Corner radius of the photos. |
| autoplay | number | 4 | Seconds before the next tile opens. 0 turns it off. |
| startIndex | number | 4 | Which tile is open first. |
| grayscale | boolean | false | Show the photos in black and white. |
| colorActive | boolean | false | Keep the open photo in colour. |
| numbering | boolean | true | Put the tile's number in front of the name. |
About Portrait Strip
A row of portrait tiles runs edge to edge. One of them is open: it grows larger, slides to the centre and shows its number and name above, role and place below. The strip advances by itself and pauses under the pointer; click any tile, or use the arrow keys, to bring someone forward. Photos are in colour, or switch to black and white with only the open one in colour.
What's included
- Edge-to-edge portrait strip
- Open tile grows and centres
- Number, name, role and place
- Autoplay that pauses on hover
- Click and arrow-key control
- Colour or black-and-white
- Type
- Animated gallery section for Next.js
- Library
- Sections · Gallery
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add portrait-strip