Skip to content

pastetaste

Endless Photo Column

MediaAnimationHeroes

Two huge words with a narrow column of photographs between them that drifts upward forever; page scrolling adds speed in either direction.

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/endless-photo-column.tsx.

npx shadcn@latest add https://pastetaste.com/r/endless-photo-column.json

Prompt

Install the pastetaste component "Endless Photo Column" (endless-photo-column) into this Next.js project and use it.

What it is: Two huge words with a narrow column of photographs between them that drifts upward forever; page scrolling adds speed in either direction.

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/endless-photo-column.json
   (it writes components/pastetaste/endless-photo-column.tsx; install any npm packages it reports).
2. Import it: import { EndlessPhotoColumn } from "@/components/pastetaste/endless-photo-column" (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):
- left / right: string = SAY / YES — The two words either side of the column.
- photos: { src: string; alt?: string; position?: string }[] — Photos of the looping column.
- speed: number = 64 — Drift speed in px per second.
- scrollBoost: number = 0.9 — How much page scrolling pushes the column; 0 turns it off.
- ratio: number = 1.08 — Height over width of each photo.
- caption: { title?: string; text?: string; action?: ReactNode } — Bottom-left block.
- label: string = Photo column — Accessible name of the section.
- ink / background: string = #111 / #f3f3f2 — Colours.
- className / style: string / CSSProperties — On the root. The root fills its parent height.

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

Props 9

PropTypeDefaultDescription
left / rightstringSAY / YESThe two words either side of the column.
photos{ src: string; alt?: string; position?: string }[]-Photos of the looping column.
speednumber64Drift speed in px per second.
scrollBoostnumber0.9How much page scrolling pushes the column; 0 turns it off.
rationumber1.08Height over width of each photo.
caption{ title?: string; text?: string; action?: ReactNode }-Bottom-left block.
labelstringPhoto columnAccessible name of the section.
ink / backgroundstring#111 / #f3f3f2Colours.
className / stylestring / CSSProperties-On the root. The root fills its parent height.
View all →