Skip to content

pastetaste

Stack To Grid Reel

SectionsAnimationLayout

A pinned reel on a dashed grid: a photo stack fans out into its cells, tinted and colour cells fill in, one product cell turns through several photos and a closing title wipes in. Cell-based layout, static on phones.

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/stack-to-grid-reel.tsx.

npx shadcn@latest add https://pastetaste.com/r/stack-to-grid-reel.json
Dependenciesgsap@^3.15.0

Prompt

Install the pastetaste component "Stack To Grid Reel" (stack-to-grid-reel) into this Next.js project and use it.

What it is: A pinned reel on a dashed grid: a photo stack fans out into its cells, tinted and colour cells fill in, one product cell turns through several photos and a closing title wipes in. Cell-based layout, static on phones.

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/stack-to-grid-reel.json
   (it writes components/pastetaste/stack-to-grid-reel.tsx; install any npm packages it reports: gsap@^3.15.0).
2. Import it: import { StackToGridReel } from "@/components/pastetaste/stack-to-grid-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):
- cells: GridCell[] = furniture series, 17 cells — Flat list of photo, fill, turn, title and caption cells, each with an area [row, col, rowSpan?, colSpan?] and an optional phone area.
- columns / rows: number = 6 / 4 — Desktop grid size.
- mobileColumns / mobileRows: number = 3 / 7 — Grid size on phones, where nothing is pinned.
- dots: [number, number][] = 4 crossings — Small dots on grid crossings, x and y in percent.
- scrollLength: number = 4.4 — Scroll length of the pinned part in viewport heights.
- background / lineColour / textColour / accent: string = warm sand, brown — Colours of the stage, dashed lines, captions, and titles and dots.
- ariaLabel / className / style: string / string / CSSProperties — On the section.

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

Props 7

PropTypeDefaultDescription
cellsGridCell[]furniture series, 17 cellsFlat list of photo, fill, turn, title and caption cells, each with an area [row, col, rowSpan?, colSpan?] and an optional phone area.
columns / rowsnumber6 / 4Desktop grid size.
mobileColumns / mobileRowsnumber3 / 7Grid size on phones, where nothing is pinned.
dots[number, number][]4 crossingsSmall dots on grid crossings, x and y in percent.
scrollLengthnumber4.4Scroll length of the pinned part in viewport heights.
background / lineColour / textColour / accentstringwarm sand, brownColours of the stage, dashed lines, captions, and titles and dots.
ariaLabel / className / stylestring / string / CSSProperties-On the section.
View all →