Sajad Entesari

Timeline Scrubber

Galleries 17

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

    Sector Wheel

    36
  • Slat Shutter Hero

    Slat Shutter Hero

    32
  • Fan Gallery

    Fan Gallery

    19
  • Scattered About

    Scattered About

    15
  • Morph Island

    Morph Island

    14
  • Scroll Fill Headline

    Scroll Fill Headline

    13
  • Torn Portrait Scroll

    Torn Portrait Scroll

    9
  • Photo Deck

    Photo Deck

    5

More in Galleries

View all
  • Animated Gallery

    Animated Gallery

    1.5K
  • Gallery Component

    Gallery Component

    5
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Image Gallery

    Image Gallery

    130
  • Folded Card

    Folded Card

    42
  • Hero Section 6

    Hero Section 6

    953
  • 3D Carousel

    3D Carousel

    2.7K