Skip to content

pastetaste

Scope Lines

BackgroundsCanvas

A stacked-oscilloscope canvas of rippling horizontal lines with an accent centre line, a live readout and optional glitch cuts. Pauses off-screen.

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/scope-lines.tsx.

npx shadcn@latest add https://pastetaste.com/r/scope-lines.json

Prompt

Install the pastetaste component "Scope Lines" (scope-lines) into this Next.js project and use it.

What it is: A stacked-oscilloscope canvas of rippling horizontal lines with an accent centre line, a live readout and optional glitch cuts. Pauses off-screen.

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/scope-lines.json
   (it writes components/pastetaste/scope-lines.tsx; install any npm packages it reports).
2. Import it: import { ScopeLines } from "@/components/pastetaste/scope-lines" (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):
- color: string = var(--pt-scope-color, #ff5a1f) — Centre line and readout colour.
- lines: number = 36 — Number of stacked lines.
- amplitude: number = 50 — Peak displacement in px.
- speed: number = 1 — Time multiplier; 0 freezes it.
- glitch: boolean = true — Random sharp vertical cuts in the waveform.
- readout: boolean = true — Show the FREQ, OSC and AMP readout in the corner.
- className: string — Class name on the root element.
- style: CSSProperties — Inline styles merged over the defaults.

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

Props 8

PropTypeDefaultDescription
colorstringvar(--pt-scope-color, #ff5a1f)Centre line and readout colour.
linesnumber36Number of stacked lines.
amplitudenumber50Peak displacement in px.
speednumber1Time multiplier; 0 freezes it.
glitchbooleantrueRandom sharp vertical cuts in the waveform.
readoutbooleantrueShow the FREQ, OSC and AMP readout in the corner.
classNamestring-Class name on the root element.
styleCSSProperties-Inline styles merged over the defaults.
View all →