Sticky showcase
A product story in steps, each with its media beside it.
Preview
From the lg breakpoint the media pins to the middle of the screen while the steps scroll past; the step crossing the middle becomes active and the media slides and cross-fades to it. Phones keep each media under its step. Pinning uses position: sticky, so no ancestor may set overflow: hidden (use overflow: clip). With reduced motion turned on, it renders the plain layout.
From signup to launch
Sample story for a made-up product.
Collect
A form that stores every email
Visitors sign up from the hero. Sample copy for a made-up product.
Join the waitlist (sample)
Sample screen, not a real form.
Review
See who joined, in order
Each signup lands in a list you can export. Sample copy.
Signups (sample data)
Measure
Watch the launch week
A chart of the week, without a tracking script. Sample copy.
From signup to launch
Sample story for a made-up product.
Collect
A form that stores every email
Visitors sign up from the hero. Sample copy for a made-up product.
Join the waitlist (sample)
Sample screen, not a real form.
Review
See who joined, in order
Each signup lands in a list you can export. Sample copy.
Signups (sample data)
Measure
Watch the launch week
A chart of the week, without a tracking script. Sample copy.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { StickyShowcase } from "@/components/custom/sticky-showcase";
<StickyShowcase
title="From signup to launch"
steps={[
{ label: "Collect", title: "A form that stores every email", description: "…", media: <Screenshot /> },
{ label: "Review", title: "See who joined", description: "…", media: <Screenshot /> },
]}
/>import { StickyShowcaseMotion } from "@/components/custom/sticky-showcase/sticky-showcase-motion";
<StickyShowcaseMotion steps={steps} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| steps* (required) | { title; description; media; label? }[] | – | In order. media is any node: an image, a video or a component. |
| title / description | string | – | Optional heading (h2) above the steps. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| steps* (required) | { title; description; media; label? }[] | – | In order. media is any node: an image, a video or a component. |
| title / description | string | – | Optional heading (h2) above the steps. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Each step is announced as “Step N of M” with an h3; its media follows it in reading order at every width.
- Give each media its own text alternative (alt text or an aria-label).
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.