Basic
Basic Split
NewCopy on one side, a picture or a video on the other.
npx motionsnack add basic-splitCustomize
Background
<BasicSplit />Props
12 properties
| Property | Type | Default | Description |
|---|---|---|---|
| media | { type?: 'image' | 'video'; src: string; alt?: string } | sample picture | Picture or video next to the copy. Without a `src` the copy takes the whole width. |
| poster | { src: string; alt?: string } | - | Still shown before a video loads, and instead of it with reduced motion. |
| kicker | string | 'About' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Copy on one side,
a picture on the other' | Headline. Use \n for line breaks. |
| description | string | 'The section every site needs a few times: a label, a headline and a paragraph next to a photo or a short video. Swap the sides to keep a long page moving.' | Paragraph under the headline. Leave empty to hide it. |
| reverse | boolean | false | Put the media on the left and the copy on the right. |
| ratio | number | 0.8 | Height of the media compared to its width (1 = square). |
| mediaRadius | number | 28 | Corner radius of the media. |
| gap | number | 64 | Space between the copy and the media on a wide screen. |
| autoplay | boolean | true | Play a video muted in a loop while it is in view. Off shows its controls instead. |
| reveal | boolean | true | Let the copy and the media rise in when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Basic Split
Two columns: a label, a headline and a paragraph on one side and a photo or a short video on the other. The sides can be swapped, so a few of these in a row keep a long page moving. A video plays muted in a loop while it is on screen and shows its poster with reduced motion. Media shape, corner radius and the gap are props. On a narrow screen the media sits under the copy.
What's included
- Label, headline and paragraph next to media
- Picture or video, with a poster
- Sides can be swapped
- 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-20
- Install
npx motionsnack add basic-split