Skip to main content
Clever Ops

Scroll Sequence Kit

An honest scrubbed frame sequence for React, canvas plays a deterministic procedural wireframe, or consumer frame URLs through a decode-ahead pipeline, driven by native scroll. Tailwind-themed.

Preview & code

Loading Scroll Sequence Kit preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-sequence-kit

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { ScrollSequenceKit } from '@/components/blocks/scroll-sequence-kit'
Exampletsx
import { ScrollSequenceKit } from '@/components/blocks/scroll-sequence-kit'

export default function ScrollSequenceKitDemo() {
  return (
    <div>
      <ScrollSequenceKit
        eyebrow="Lab · Scrubbed sequence"
        heading="Ninety-six frames, zero downloads."
        body="Scroll plays the sequence like a film scrubber: a seeded wireframe beacon assembles and rotates, every frame computed live from theme tokens. Hand the same component a frames array and it becomes a decode-ahead image pipeline."
        sequenceLabel="A wireframe beacon assembles edge by edge and rotates above a calibrated ground ellipse as the page scrolls; the final frame lights its apex node."
      />
      {/* scroll runway so the scrub has room to play in context */}
      <div aria-hidden="true" className="h-[60vh]" />
    </div>
  )
}

API reference

ScrollSequenceKit accepts the following props.

PropTypeDefaultDescription
eyebrowstring
headingstring
bodystring
framesstring[]Consumer-provided frame URLs (path 2). When present, frames are decoded ahead through an Image pipeline with a ±prefetchWindow window and the nearest decoded frame is painted while neighbours land. When absent, the built-in procedural sequence draws (path 1).
frameCountnumber96virtual frame count for the procedural sequence (default 96)
prefetchWindownumber6decode-ahead window in frames for the URL pipeline (default 6)
scrubVhnumber260scroll runway for the scrub in vh (default 260)
seednumber5deterministic seed for the procedural assembly order
sequenceLabelstring'A wireframe beacon assembles and rotates as the page scrolls.'sr-only description of what the sequence shows

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Scroll Sequence Kit component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/scroll-sequence-kit`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Scroll Sequence Kit require?

Scroll Sequence Kit has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Scroll Sequence Kit to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services