About
Drag along a month ruler to move through a set of photos. Each image wipes in from the direction you move, the value (temperature in the demo) rolls on digit reels, and arrow, Home and End keys work too. Good for seasons, project stages or before and after stories.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Timeline Scrubber to your project and fits it to your theme.
Code
How Timeline Scrubber is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { TimelineScrubber } from "@/components/ui/timeline-scrubber"
const IMG = "https://cdn.jsdelivr.net/gh/rm-sjent/21st-assets@v1/img/"
const stops = [
{ month: 0, src: `${IMG}year-01.jpg`, title: "Frozen still", value: -12, valueSuffix: "°", valueLabel: "Average low" },
{ month: 3, src: `${IMG}year-02.jpg`, title: "The thaw starts", value: 4, valueSuffix: "°", valueLabel: "Average high" },
{ month: 6, src: `${IMG}year-03.jpg`, title: "Long gold evenings", value: 22, valueSuffix: "°", valueLabel: "Average high" },
{ month: 9, src: `${IMG}year-04.jpg`, title: "Larches turn", value: 9, valueSuffix: "°", valueLabel: "Average high" },
{ month: 11, src: `${IMG}year-05.jpg`, title: "Lights on early", value: -6, valueSuffix: "°", valueLabel: "Average low" },
]
export default function TimelineScrubberDemo() {
return (
<div className="flex min-h-[760px] w-full items-center justify-center bg-white p-6 md:p-12" style={{ fontFamily: "Geist, ui-sans-serif, system-ui, sans-serif" }}>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@300..600&family=Newsreader:ital,opsz,wght@0,6..72,300..500;1,6..72,300..400&display=swap" precedence="default" />
<div className="w-full max-w-[1200px]">
<TimelineScrubber stops={stops} />
</div>
</div>
)
}















