Video
Video Rows
Videos side by side in their original aspect ratios, wrapping to the next row when one no longer fits.
npx motionsnack add video-rowsCustomize
Background
<VideoRows />Props
19 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { media?: { type?: 'image' | 'video'; src: string; alt?: string }; poster?: { src: string; alt?: string }; title?: string; description?: string }[] | 10 sample videos | Videos in reading order. Each keeps its own aspect ratio; one that no longer fits starts the next row. |
| 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 | 'Videos' | Small label above the headline. |
| title | string | 'Every format,
one flowing wall' | Headline. Use \n for line breaks. |
| description | string | 'Landscape films, square ads and vertical reels sit side by side in their own proportions. Hover a video and press play to hear it.' | Paragraph next to 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. |
| rowHeight | number | 300 | Height a row aims for on a wide screen. |
| justify | boolean | true | Stretch every full row to the exact width. Off keeps the height and leaves the right edge ragged. |
| gap | number | 16 | Space between the videos. |
| radius | number | 12 | Corner radius of the videos. |
| showCaptions | boolean | true | Show the title and description under each video. |
| autoplayPreview | boolean | true | Play the clips muted in a loop while in view. Off shows the posters. |
| playWithSound | boolean | true | Show a play button on hover that plays the clip with sound. |
| reveal | boolean | true | Fade the videos in as they scroll into view. |
| stagger | number | 0.06 | Delay between neighbouring videos revealing. |
| hoverZoom | number | 1.03 | How far the video zooms on hover. 1 = none. |
About Video Rows
Landscape, square and vertical clips line up in rows, each in the proportions it was shot in. When the next video no longer fits, it starts a new row, and every full row is stretched to an even right edge (or left ragged, if you prefer). Previews play muted while in view; hover a video to play it with sound, scrub through it or open it full screen. Rows re-flow smoothly as the window changes.
What's included
- Original aspect ratio per video
- Automatic wrap to the next row
- Justified or ragged rows
- Muted previews while in view
- Play with sound, seek and full screen
- Title and description under each video
- Type
- Animated video section for Next.js
- Library
- Sections · Video
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add video-rows