Case Study Scroll
Problem → Process → Result as a scroll-driven story: a sticky rail fills as you read and lights the current chapter while chapters rise in with staggered key figures.
Try it: Scroll — the rail fills and the chapter lights up.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/case-study-scroll.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/case-study-scroll. You can also copy the source into components/ui/case-study-scroll.tsx (view on GitHub).
Usage
import { CaseStudyScroll } from '@/components/ui/case-study-scroll'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
client | string | — | Case-study title in the rail. |
steps | CaseStudyStep[] | problem / process / result | { id, label, title, body, points?, seed?, src? } |
scrollContainer | React.RefObject<HTMLElement | null> | window | Scroll element when the component lives inside its own scroller. |
titleAs | 'h2' | 'h3' | 'h3' | Heading element for item titles, so the page outline stays valid. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motion
Related Portfolio components
- Before / After Slider
Drag, tap or use the arrow keys to wipe between two states. The knob stretches while held, the reveal edge glows and the handle sweeps once on first view.
- Project Filter Gallery
Category chips share a sliding pill (layout animation) while the grid reflows: survivors glide to new cells, newcomers bloom in blur-to-sharp. Announces the result count.
- Career Timeline
A vertical line that draws itself as you scroll with a glowing head; milestone nodes pop on springs and cards slide in from alternating sides.
- Project Reveal List
An editorial project index: rows dim their siblings and nudge on hover while a tilting preview chases the cursor on a spring and unmasks with a clip-path. Touch gets inline thumbnails.
- Skills Marquee
Two counter-rotating rails of skill pills. Hover or keyboard focus pauses, a visible Pause button covers touch and WCAG 2.2.2, and reduced motion becomes a calm wrapped list.
- Particle Mesh Gallery
An image-colored particle sphere unfolds into a portrait on tap and gathers back on double tap, with original landscape art and a quiet project index.