Skip to content

pastetaste

Step Reel

CardsMediaAnimation

An endless row of portrait cards that advances one card at a time: a sharp glide, a long soft landing, a short hold. Photos can cut to a new shot on each move. Caption bar, swipe, keys; pauses on hover.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/step-reel.tsx.

npx shadcn@latest add https://pastetaste.com/r/step-reel.json

Prompt

Install the pastetaste component "Step Reel" (step-reel) into this Next.js project and use it.

What it is: An endless row of portrait cards that advances one card at a time: a sharp glide, a long soft landing, a short hold. Photos can cut to a new shot on each move. Caption bar, swipe, keys; pauses on hover.

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/step-reel.json
   (it writes components/pastetaste/step-reel.tsx; install any npm packages it reports).
2. Import it: import { StepReel } from "@/components/pastetaste/step-reel" (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):
- children: ReactNode — One child per card; each is stretched to the card size.
- interval: number = 1.5 — Seconds from the start of one step to the start of the next (glide plus hold).
- duration: number = 0.9 — Seconds the glide takes. Longer jumps (clicking a far card) take up to 1.6x.
- step: number = 1 — Cards moved per automatic step.
- direction: 'left' | 'right' = 'left' — Which way the row travels on its own.
- align / inset: 'center' | 'start' / string = 'center' / '0px' — Where the current card sits; inset is its distance from the start edge when aligned to the start.
- cardWidth / aspect / gap / radius: string = 'clamp(168px, 24vw, 340px)' / '4 / 5' / '14px' / '8px' — Card size and spacing as CSS values (also settable as --pt-reel-card, --pt-reel-ratio, --pt-reel-gap, --pt-reel-radius).
- autoPlay: boolean = true — Advance on its own. Off under reduced motion until the viewer presses play.
- pauseOnHover: boolean = true — Hold the current card while the mouse is over the row.
- controls: boolean = true — Bar under the row with the count, the caption and prev / pause / next buttons.
- caption: (index: number) => ReactNode — Caption for the current card, shown in the bar; it rises in as each step starts.
- onStep: (index: number) => void — Called when a step starts, with the index of the arriving card.
- startIndex: number = 0 — Card shown first.
- ease: [number, number, number, number] = [0.15, 0, 0, 1] — Glide easing as cubic-bezier points; the default was fitted to the reference reel.
- label: string = 'Carousel' — Accessible name of the carousel region.
- StepReelCut images / every / offset: (string | { src, alt })[] / number / number = — / 2 / 0 — Companion image for a card: hard-cuts to its next shot when the reel starts a step, every N steps; offset staggers neighbouring cards.

Live preview: https://pastetaste.com/c/step-reel
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 16

PropTypeDefaultDescription
childrenReactNode-One child per card; each is stretched to the card size.
intervalnumber1.5Seconds from the start of one step to the start of the next (glide plus hold).
durationnumber0.9Seconds the glide takes. Longer jumps (clicking a far card) take up to 1.6x.
stepnumber1Cards moved per automatic step.
direction'left' | 'right''left'Which way the row travels on its own.
align / inset'center' | 'start' / string'center' / '0px'Where the current card sits; inset is its distance from the start edge when aligned to the start.
cardWidth / aspect / gap / radiusstring'clamp(168px, 24vw, 340px)' / '4 / 5' / '14px' / '8px'Card size and spacing as CSS values (also settable as --pt-reel-card, --pt-reel-ratio, --pt-reel-gap, --pt-reel-radius).
autoPlaybooleantrueAdvance on its own. Off under reduced motion until the viewer presses play.
pauseOnHoverbooleantrueHold the current card while the mouse is over the row.
controlsbooleantrueBar under the row with the count, the caption and prev / pause / next buttons.
caption(index: number) => ReactNode-Caption for the current card, shown in the bar; it rises in as each step starts.
onStep(index: number) => void-Called when a step starts, with the index of the arriving card.
startIndexnumber0Card shown first.
ease[number, number, number, number][0.15, 0, 0, 1]Glide easing as cubic-bezier points; the default was fitted to the reference reel.
labelstring'Carousel'Accessible name of the carousel region.
StepReelCut images / every / offset(string | { src, alt })[] / number / number— / 2 / 0Companion image for a card: hard-cuts to its next shot when the reel starts a step, every N steps; offset staggers neighbouring cards.
View all →