Sajad Entesari

Timeline Scrubber

Galleries 58

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>
  )
}

Dependencies

More by Sajad Entesari

View all
  • Slat Shutter Hero

    Slat Shutter Hero

    125
  • Fan Gallery

    Fan Gallery

    84
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    79
  • Sector Wheel

    Sector Wheel

    75
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Feature UI Row

    Feature UI Row

    48
  • Morph Island

    Morph Island

    40

More in Galleries

View all
  • Gallery Component

    Gallery Component

    48
  • Product Hover Showcase

    Product Hover Showcase

    120
  • Morph Gallery

    Morph Gallery

    3
  • Image Gallery

    Image Gallery

    97
  • Editorial Collage Hero

    Editorial Collage Hero

    529
  • About 3

    About 3

    459
  • Elastic Gallery

    Elastic Gallery

    1.2K
  • Thumbnail image viewer

    Thumbnail image viewer

    115