Skip to content
Uxelith
Sign in
Prov1.0.0Marketing blocks

Scroll Story

A story told as you scroll: steps of text pass a pinned stage, and each visual you have read falls back into a tilted deck as the next rises into place. Works in the page or any scrolling container.

Installs with Uxelith ProHow
Licence
Pro
Packages
3
Updated
18 Oct 2026
Live

Installation

Usage

example.tsx
import { ScrollStory } from "@/components/scroll-story"

const steps = [
  { title: "Plan", body: "Agree on what to build.", visual: <div className="bg-sky-200" /> },
  { title: "Build", body: "Make it real.", visual: <div className="bg-violet-200" /> },
  { title: "Ship", body: "Put it in front of people.", visual: <div className="bg-emerald-200" /> },
]

export function HowItWorks() {
  return <ScrollStory steps={steps} />
}

Props

PropTypeDefaultDescription
steps{ eyebrow?, title, body, visual }[]—Each step's text, and what the stage shows while it is read.
stageSide"right" | "left""right"Which side the pinned stage sits on (it goes above the text on phones).
headingLevel2 | 3 | 43Level of each step's title in your page outline.
onStepChange(index: number) => void—Called when the step being read changes.

Accessibility

  • Plain content in reading order: an ordered list of steps with real headings; the current one has aria-current="step".
  • Only the current visual is exposed; the others are inert and hidden from assistive technology.
  • Nothing depends on scrolling to be read: every step's text is always on the page.
  • Under prefers-reduced-motion the visuals swap without moving.

Changelog

  1. v1.0.0Latest

    First release.

More in Marketing blocks

All 8 in Marketing blocks
  • Marketing blocksPro

    Bento Feature Grid

    A features section as a bento grid: five tiles with live CSS illustrations (motion curves, a theme cycling, frameworks, a typing terminal, a focus ring stepping with Tab), a shared spotlight and scroll-driven entrances.

  • Marketing blocksPro

    FAQ Section

    Frequently asked questions: a large heading, an animated accordion, an optional search that narrows and highlights answers, a contact card and FAQPage structured data.

  • Marketing blocksFree

    Hero Section

    A landing-page hero: a large headline that comes into focus, a magnetic call to action, customer marks and a live product shot with a self-drawing chart, a visiting cursor and floating cards.