Skip to content

pastetaste

Word Photo Drum

MediaAnimationHeroes

A giant split word with a photo window in the gap on a five-row vertical drum: every beat it turns a row, the window opens and sharpens out of a blur and the photo changes; scrolling pushes it on.

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/word-photo-drum.tsx.

npx shadcn@latest add https://pastetaste.com/r/word-photo-drum.json

Prompt

Install the pastetaste component "Word Photo Drum" (word-photo-drum) into this Next.js project and use it.

What it is: A giant split word with a photo window in the gap on a five-row vertical drum: every beat it turns a row, the window opens and sharpens out of a blur and the photo changes; scrolling pushes it on.

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/word-photo-drum.json
   (it writes components/pastetaste/word-photo-drum.tsx; install any npm packages it reports).
2. Import it: import { WordPhotoDrum } from "@/components/pastetaste/word-photo-drum" (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):
- before / after: string = GA / ZU — Text left and right of the photo window.
- slides: { src: string; alt?: string; title: string; meta?: string; position?: string }[] — Photos shown in turn; title and meta appear in the counter.
- interval: number = 1250 — Milliseconds between drum turns.
- caption: ReactNode — Small text top left.
- action: ReactNode — Node pinned bottom centre.
- label: string = Photo drum — Accessible name of the section.
- ink / background: string = #111 / #fff — Colours of the word and the stage.
- className / style: string / CSSProperties — On the root. The root fills its parent height.

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

Props 8

PropTypeDefaultDescription
before / afterstringGA / ZUText left and right of the photo window.
slides{ src: string; alt?: string; title: string; meta?: string; position?: string }[]-Photos shown in turn; title and meta appear in the counter.
intervalnumber1250Milliseconds between drum turns.
captionReactNode-Small text top left.
actionReactNode-Node pinned bottom centre.
labelstringPhoto drumAccessible name of the section.
ink / backgroundstring#111 / #fffColours of the word and the stage.
className / stylestring / CSSProperties-On the root. The root fills its parent height.
View all →