Systra Tools

Scroll Measure Line

Component

About

A ruler-inspired animated scroll progress indicator with tick marks. Scroll through a four-stage project to explore the live effect. Part of the MIT-licensed Systra Free UI collection (systra.tools).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scroll Measure Line to your project and fits it to your theme.

Code

How Scroll Measure Line is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ScrollMeasureLine } from "@/components/ui/scroll-measure-line";

const phases = [
  { number: "01", title: "Brief", text: "Define the direction." },
  { number: "02", title: "Draft", text: "Explore the possibilities." },
  { number: "03", title: "Build", text: "Make the details work." },
  { number: "04", title: "Live", text: "Share the finished work." },
];

export default function Demo() {
  return (
    <main className="bg-[#f7f7f5] text-[#15181a] dark:bg-[#17191b] dark:text-[#f5f5f2]">
      <section style={{ minHeight: "85vh" }} className="mx-auto flex min-h-[85vh] max-w-[760px] flex-col justify-between px-6 pt-8 sm:px-12 sm:pt-12">
        <div className="flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.16em] opacity-60">
          <span>Project / 001</span><span>Process study</span>
        </div>
        <div className="my-8">
          <p className="mb-4 font-mono text-[10px] uppercase tracking-[0.16em] text-[#739c43]">From idea to launch</p>
          <h1 className="max-w-[580px] text-[clamp(2.2rem,7vw,4.5rem)] leading-[0.98] font-medium tracking-[-0.065em]">Good things take shape.</h1>
          <p className="mt-5 max-w-[320px] text-sm leading-relaxed opacity-65">A small guide to the four stages of making something meaningful.</p>
        </div>
        <div className="flex items-center gap-2 pb-2 font-mono text-[10px] uppercase tracking-[0.12em] opacity-60">
          <span aria-hidden="true">↓</span> Scroll to explore
        </div>
      </section>
      <section className="mx-auto max-w-[760px] px-6 sm:px-12" aria-label="Project progress">
        <div className="flex justify-center rounded-2xl bg-white px-5 text-[#15181a] sm:px-10">
          <ScrollMeasureLine />
        </div>
        <div style={{ minHeight: "80vh" }} className="grid min-h-[80vh] content-start grid-cols-1 gap-3 py-8 sm:grid-cols-2">
          {phases.map((phase) => (
            <article key={phase.number} className="rounded-xl bg-white p-6 dark:bg-[#242729]">
              <p className="mb-8 font-mono text-[10px] text-[#739c43]">{phase.number}</p>
              <h2 className="text-xl font-medium tracking-tight">{phase.title}</h2>
              <p className="mt-2 text-sm opacity-65">{phase.text}</p>
            </article>
          ))}
        </div>
      </section>
    </main>
  );
}

Dependencies

More by Systra Tools

View all
  • Diagonal Review Drift

    Diagonal Review Drift

    1
  • Faq Tabbed Section

    Faq Tabbed Section

    1
  • Tear Off Button

    Tear Off Button

  • Slice Rise Type

    Slice Rise Type

  • Drifting Particle Cloud Hero

    Drifting Particle Cloud Hero

  • Masked Word Rise

    Masked Word Rise

  • Pixel Dissolve Button

    Pixel Dissolve Button

  • Fold Corner Button

    Fold Corner Button