Scroll Story

A scrollytelling section: steps scroll on one side while a pinned visual swaps as each reaches mid screen and a progress rail fills. Inline on mobile.

src/registry/blocks/scroll-story.tsx/r/scroll-story.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/scroll-story.json

Usage#

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

export function Example() {
  return <ScrollStory />
}

API reference#

ScrollStory props
PropTypeDefault
eyebrowstring"How it works"
titleReact.ReactNode"Live in an afternoon."
stepsStep[]STEPS
classNamestring-

Dependencies#

npm

lucide-reactmotion

Built from

No other MiniDev files
All Landing page sections for React and Tailwind