pastetaste
Bowed Card Carousel
A pinned, scroll-driven carousel: tall cards slide through the middle and their long edges bow inwards with distance like a lens, while a giant word behind the row names the centred card.
Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.
Live demo. Move the mouse and scroll inside it.
Install
Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/bowed-card-carousel.tsx.
npx shadcn@latest add https://pastetaste.com/r/bowed-card-carousel.jsonPrompt
Install the pastetaste component "Bowed Card Carousel" (bowed-card-carousel) into this Next.js project and use it.
What it is: A pinned, scroll-driven carousel: tall cards slide through the middle and their long edges bow inwards with distance like a lens, while a giant word behind the row names the centred card.
Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:
Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/bowed-card-carousel.json
(it writes components/pastetaste/bowed-card-carousel.tsx; install any npm packages it reports).
2. Import it: import { BowedCardCarousel } from "@/components/pastetaste/bowed-card-carousel" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.
Props (all optional unless the type has no default):
- cards: BowedCard[] = six sample cards — title, sub, image, position.
- header: ReactNode — Content above the row (overline and heading).
- cardWidth: number = 0.26 — Card width as a fraction of the viewport width (max 440 px).
- bow: number = 0.27 — How much the sides bow at the row's edges, as a fraction of card width.
- perCard: number = 0.8 — Scroll length per card step in viewport heights.
- background: string = '#efede8' — Section background.
- className / style: string / CSSProperties — On the root.
Live preview: https://pastetaste.com/c/bowed-card-carousel
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.Props 7
| Prop | Type | Default | Description |
|---|---|---|---|
| cards | BowedCard[] | six sample cards | title, sub, image, position. |
| header | ReactNode | - | Content above the row (overline and heading). |
| cardWidth | number | 0.26 | Card width as a fraction of the viewport width (max 440 px). |
| bow | number | 0.27 | How much the sides bow at the row's edges, as a fraction of card width. |
| perCard | number | 0.8 | Scroll length per card step in viewport heights. |
| background | string | '#efede8' | Section background. |
| className / style | string / CSSProperties | - | On the root. |