Sajad Entesari

Timeline Scrubber

Galleries 1

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
  • Sector Wheel

    Sector Wheel

    5
  • Torn Portrait Scroll

    Torn Portrait Scroll

    3
  • Slat Shutter Hero

    Slat Shutter Hero

    2
  • Scattered About

    Scattered About

    1
  • Scroll Fill Headline

    Scroll Fill Headline

    1
  • Bento Mini UI

    Bento Mini UI

    1
  • Morph Island

    Morph Island

    1
  • Feature UI Row

    Feature UI Row

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    99
  • Animated Gallery

    Animated Gallery

    1.5K
  • Editorial Collage Hero

    Editorial Collage Hero

    501
  • Image Gallery

    Image Gallery

    95
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Folded Card

    Folded Card

    38
  • Hero Section 6

    Hero Section 6

    948
  • Img Sphere

    Img Sphere

    2.2K