pastetaste
Frame Snap Steps
A viewfinder frame that snaps to a different region of one photograph for each process step, with a trailing ghost frame, corner brackets and a magnified coordinate inset; pinned on scroll.
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/frame-snap-steps.tsx.
npx shadcn@latest add https://pastetaste.com/r/frame-snap-steps.jsonPrompt
Install the pastetaste component "Frame Snap Steps" (frame-snap-steps) into this Next.js project and use it.
What it is: A viewfinder frame that snaps to a different region of one photograph for each process step, with a trailing ghost frame, corner brackets and a magnified coordinate inset; pinned on scroll.
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/frame-snap-steps.json
(it writes components/pastetaste/frame-snap-steps.tsx; install any npm packages it reports).
2. Import it: import { FrameSnapSteps } from "@/components/pastetaste/frame-snap-steps" (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):
- src / alt: string = a sample dancer photo — The photograph.
- steps: FrameStep[] = 4 sample steps — { n, title, text, box: [left, top, width, height] in % of the picture }.
- heading / eyebrow: string = 'Four frames per picture' / '// Process' — Section title and overline.
- position: string = '50% 50%' — object-position of the picture.
- perStep: number = 65 — Scroll per step in svh when pinned.
- accent: string = '#e0261c' — Frame and active numeral colour.
- className / style: string / CSSProperties — On the root.
Live preview: https://pastetaste.com/c/frame-snap-steps
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 |
|---|---|---|---|
| src / alt | string | a sample dancer photo | The photograph. |
| steps | FrameStep[] | 4 sample steps | { n, title, text, box: [left, top, width, height] in % of the picture }. |
| heading / eyebrow | string | 'Four frames per picture' / '// Process' | Section title and overline. |
| position | string | '50% 50%' | object-position of the picture. |
| perStep | number | 65 | Scroll per step in svh when pinned. |
| accent | string | '#e0261c' | Frame and active numeral colour. |
| className / style | string / CSSProperties | - | On the root. |