Projects
Feed Card Projects
NewProjects as social posts: a card with a round picture, a name and a line, and a swipeable carousel of pictures and videos.
npx motionsnack add feed-card-projectsCustomize
Background
<FeedCardProjects />Props
15 properties
| Property | Type | Default | Description |
|---|---|---|---|
| projects | { title: string; subtitle?: string; avatar?: { src: string; alt?: string }; media?: { type?: 'image' | 'video'; src: string; alt?: string }[]; caption?: string; href?: string }[] | 3 sample projects | One card per project. More than one item in `media` turns the card into a carousel. |
| primaryCta | { label: string; href?: string } | { label: 'All projects', href: '#' } | Filled button under the cards. An empty label hides it. |
| kicker | string | 'Selected work' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Projects, the way
you scroll them' | Headline. Use \n for line breaks. |
| description | string | 'Each project is a post: swipe through the pictures and clips, then open the full story.' | 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. |
| columns | number | 3 | Cards in a row on a desktop. |
| mediaAspect | number | 1 | Width of the media divided by its height: 1 is a square, 0.8 is 4 : 5. |
| gap | number | 16 | Space between the cards. |
| cardRadius | number | 20 | Corner radius of a card. |
| autoplay | boolean | true | Play videos muted in a loop while their slide is in view. Off shows their first frame. |
| showCounter | boolean | true | "2 / 5" in the corner of a carousel. |
| showArrows | boolean | true | Arrows on the sides of a carousel. They show on hover; phones swipe. |
| reveal | boolean | true | Let the header and the cards rise in when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Feed Card Projects
A projects section where every project looks like a post in a feed. A card starts with a round picture, the name of the project and one short line, with an arrow that opens the project. Under it sits the media: one picture or video, or a carousel of several that you swipe on a phone, drag with a mouse or step through with arrows and dots. A counter in the corner shows where you are. Videos play muted in a loop only while their slide is in view, and a button turns the sound on. A short caption closes the card. A headline with a paragraph sits above the cards and a button below.
What's included
- Post-style cards with header, media and caption
- Carousel of pictures and videos: swipe, drag, arrows, dots, keys
- Counter in the corner of a carousel
- Videos play only on the slide in view, sound button
- Columns, media proportions, gap and radius you can set
- Light and dark look, reduced motion respected
- Type
- Animated projects section for Next.js
- Library
- Sections · Projects
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-22
- Install
npx motionsnack add feed-card-projects