Skip to main content
Clever Ops

Parallax Strata

Three drafting-table strata, hairline grid, survey contours, content, drift at gently different rates as the section scrolls, depth measured in single-digit percentages.

Preview & code

Loading Parallax Strata preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-parallax-strata

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

Usage

tsx
import { ScrollParallaxStrata } from '@/components/blocks/scroll-parallax-strata'
Exampletsx
import { ScrollParallaxStrata } from '@/components/blocks/scroll-parallax-strata'

export default function ScrollParallaxStrataDemo() {
  return (
    <ScrollParallaxStrata
      eyebrow="Field survey · sheet 04"
      heading="Depth you can measure in single digits."
      body="Three strata drift at drafting-table rates, grid, contours, and copy, so the section gains space without photography or blur. Scroll once; the layers settle mid-frame under reduced motion."
      intensity={1}
      showContours
    >
      <div className="flex flex-wrap gap-3">
        {[
          { value: '−8%', label: 'grid drift' },
          { value: '−4%', label: 'contour drift' },
          { value: '+2%', label: 'content drift' },
        ].map((chip) => (
          <div
            key={chip.label}
            className="rounded-lg border border-border/60 bg-card px-4 py-3"
          >
            <p className="text-lg font-semibold tracking-tight tabular-nums text-foreground">
              {chip.value}
            </p>
            <p className="mt-1 font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground">
              {chip.label}
            </p>
          </div>
        ))}
      </div>
    </ScrollParallaxStrata>
  )
}

API reference

ScrollParallaxStrata accepts the following props.

PropTypeDefaultDescription
eyebrowstring
heading*string
bodystring
intensitynumber10–1.5 multiplier on stratum drift; offsets clamped to 10% of section height
showContoursbooleantruetoggle the mid contour stratum
childrenReact.ReactNodeoptional content (stat chips, CTA row) in the front stratum below the copy

…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 Parallax Strata 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-parallax-strata`. 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 Parallax Strata require?

Parallax Strata uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Parallax Strata 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