Skip to main content
Clever Ops

Ink Roller

A viewport press line inks the page as content scrolls beneath it, blocks rise as blueprint proofs and cross into full ink via clip-path. React and Tailwind tokens; reversible, native scroll only.

Preview & code

Loading Ink Roller preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-ink-roller

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

Usage

tsx
import { ScrollInkRoller } from '@/components/blocks/scroll-ink-roller'
Exampletsx
import { ScrollInkRoller } from '@/components/blocks/scroll-ink-roller'

export default function ScrollInkRollerDemo() {
  return (
    <ScrollInkRoller
      eyebrow="Press hall · Folio 12"
      heading="Blueprint below. Ink above."
      lede="A fixed press line develops each block from survey proof into finished ink as you scroll. Reverse the page and the plates return to dashed keylines, the instrument never moves."
      lineOffset={0.66}
      panels={[
        {
          title: 'Survey the form first',
          body: 'Hairline boxes and dashed keylines hold the structure before any ink lands. The press line is the only accent, a mono readout ticks printed percentage as blocks cross.',
        },
        {
          title: 'Develop through the roller',
          body: 'Identical geometry stacks as proof and ink. Clip-path insets trade one for the other at the instrument edge, so every intermediate frame is a composed half-print.',
        },
        {
          title: 'Hold the finished sheet',
          body: 'Once a panel clears the line it stays fully inked, card surface, border, and type weight locked. Scroll back and the blueprint reappears without a one-shot reveal.',
        },
      ]}
    />
  )
}

API reference

ScrollInkRoller accepts the following props.

PropTypeDefaultDescription
eyebrowstring
heading*string
ledestringstandfirst under the heading
panels*InkRollerPanel[]2–4 feature panels that develop from proof to ink
lineOffsetnumber0.66press line position as a viewport height fraction

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

Referenced types

Typestsx
export interface InkRollerPanel {
  title: string
  body: string
}

Frequently asked questions

How do I install the Ink Roller 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-ink-roller`. 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 Ink Roller require?

Ink Roller 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 Ink Roller 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