Scrolling Sequence Rail
A feature section whose steps sit on a horizontally scrolling card rail below a two-column header (heading on the left, description and CTA on the right). Each card carries a numbered index, a title, a paragraph, and a timing note on a hairline. Built with pure CSS scroll-snap, no client JavaScript required.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/scrolling-sequence-rail.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature9.tsx instead.
Usage
The file also exports feature9Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature9, feature9Demo } from "@/components/blocks/feature/feature9"; export default function Page() { return <Feature9 {...feature9Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Section heading in the left header column. |
| description | string | undefined | Supporting paragraph in the right header column. |
| cta | Feature9Cta | undefined | Optional outline button link in the right header column. |
| steps | Feature9Step[] | none | Cards rendered in the horizontally scrolling rail, in order. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature9Cta { label: string; href: string; } interface Feature9Step { title: string; description: string; timing: string; }
Behavior notes
- The rail scrolls horizontally with native CSS scroll-snap (snap-x snap-mandatory); no JavaScript tracks the active card or drives the scroll position.
- Each card's index number (01, 02, ...) is derived from its position in the steps array, not a separate prop.
- cta renders as a plain link (Button with render={<Link/>}); there is no real navigation wired up beyond the href you pass.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.