Sajad Entesari

Timeline Scrubber

Galleries 39

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:[email protected]&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

    74
  • Sector Wheel

    Sector Wheel

    59
  • Fan Gallery

    Fan Gallery

    55
  • Scattered About

    Scattered About

    54
  • Photo Deck

    Photo Deck

    49
  • Scroll Fill Headline

    Scroll Fill Headline

    44
  • Feature UI Row

    Feature UI Row

    25
  • Morph Island

    Morph Island

    24

More in Galleries

View all
  • Cylinder Tunnel Gallery

    Cylinder Tunnel Gallery

    7
  • Animated Gallery

    Animated Gallery

    1.6K
  • Phantom Infinite Gallery

    Phantom Infinite Gallery

    58
  • Gallery Component

    Gallery Component

    23
  • Image Gallery

    Image Gallery

    131
  • Hero Section 6

    Hero Section 6

    968
  • Cloth Works Gallery

    Cloth Works Gallery

    10
  • Editorial Collage Hero

    Editorial Collage Hero

    517