Skip to content

pastetaste

Stage Sweep

BackgroundsCanvasAmbient

Beams of light that swing across a dark ground from pivots along one edge, crossing and adding up, each landing in a pool of light. One 2D canvas.

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/stage-sweep.tsx.

npx shadcn@latest add https://pastetaste.com/r/stage-sweep.json

Prompt

Install the pastetaste component "Stage Sweep" (stage-sweep) into this Next.js project and use it.

What it is: Beams of light that swing across a dark ground from pivots along one edge, crossing and adding up, each landing in a pool of light. One 2D canvas.

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/stage-sweep.json
   (it writes components/pastetaste/stage-sweep.tsx; install any npm packages it reports).
2. Import it: import { StageSweep } from "@/components/pastetaste/stage-sweep" (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):
- colors: string[] = ['#fff2d6','#ffb75e'] — Beam colours, cycled across the beams.
- ground: string = '#07080a' — Ground colour.
- beams: number = 5 — Number of beams, 1 to 12.
- origin: 'top' | 'bottom' = 'top' — Edge the beams pivot from; the pools land on the opposite edge.
- speed: number = 1 — Swing tempo; 0 freezes the rig.
- width: number = 4.5 — Half-width of each beam in degrees.
- intensity: number = 1 — Overall brightness.
- pools: boolean = true — Draw a pool of light where each beam lands.

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

Props 8

PropTypeDefaultDescription
colorsstring[]['#fff2d6','#ffb75e']Beam colours, cycled across the beams.
groundstring'#07080a'Ground colour.
beamsnumber5Number of beams, 1 to 12.
origin'top' | 'bottom''top'Edge the beams pivot from; the pools land on the opposite edge.
speednumber1Swing tempo; 0 freezes the rig.
widthnumber4.5Half-width of each beam in degrees.
intensitynumber1Overall brightness.
poolsbooleantrueDraw a pool of light where each beam lands.
View all →