Basic
Basic Duo
NewA label, a headline and a paragraph with two pictures or videos side by side under them.
npx motionsnack add basic-duoCustomize
Background
<BasicDuo />Props
11 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { media?: { type?: 'image' | 'video'; src: string; alt?: string }; poster?: { src: string; alt?: string } }[] | 2 sample pictures | Two pictures or videos side by side under the copy. One fills the whole width; more than two are ignored. |
| kicker | string | 'About' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Two pictures
say it better' | Headline. Use \n for line breaks. |
| description | string | 'A label, a headline and a paragraph on top, and two photos or videos side by side under them. For a before and after, two projects or two sides of one story.' | Paragraph under the headline. Leave empty to hide it. |
| align | 'center' | 'left' | 'center' | Where the copy sits and how its lines are aligned. |
| ratio | number | 1 | Height of each picture compared to its width (1 = square). |
| mediaRadius | number | 28 | Corner radius of the pictures. |
| gap | number | 16 | Space between the two pictures. |
| autoplay | boolean | true | Play videos muted in a loop while they are in view. Off shows their controls instead. |
| reveal | boolean | true | Let the copy and the pictures rise in when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Basic Duo
The copy on top, centred or aligned left, and two photos or videos side by side under it. For a before and after, two projects or two sides of one story. With one item it fills the whole width; on a phone the two stack. Videos play muted in a loop while they are on screen and show their poster with reduced motion. Picture shape, corner radius and the gap are props.
What's included
- Copy on top, two media side by side
- Pictures or videos, with posters
- Stacks on a phone
- Staggered reveal on scroll, optional
- Light and dark, reduced motion respected
- Type
- Animated basic section for Next.js
- Library
- Sections · Basic
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-21
- Install
npx motionsnack add basic-duo