honestui

Scroll Velocity Text

Component

About

Rows of large text that drift sideways, then speed up and lean as the page scrolls.

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

Code

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

Usage.tsx

"use client";

import { useRef } from "react";

import { ScrollVelocityText } from "@/components/ui/honest-scroll-velocity-text";

const shows = [
  { name: "Harbor Lights", when: "Friday, 8 PM" },
  { name: "The Paper Maps", when: "Saturday, 7 PM" },
  { name: "Low Tide Trio", when: "Saturday, 9 PM" },
  { name: "North of Here", when: "Sunday, 4 PM" },
  { name: "Oak Street Choir", when: "Sunday, 6 PM" },
];

export default function ScrollVelocityTextPanel() {
  const panelRef = useRef<HTMLDivElement>(null);

  return (
    <div
      ref={panelRef}
      role="region"
      aria-label="Weekend shows"
      tabIndex={0}
      className="h-80 w-full max-w-md overflow-y-auto rounded-xl border border-border bg-card outline-none focus-visible:ring-2 focus-visible:ring-ring"
    >
      <div className="sticky top-0 border-b border-border bg-card py-3">
        <ScrollVelocityText
          scrollContainer={panelRef}
          rows={["Now showing"]}
          velocity={30}
          scrollFactor={10}
          skew={14}
          separator={<span className="px-4 text-muted-foreground">/</span>}
          rowClassName="text-2xl sm:text-2xl"
          pauseOnHover
        />
      </div>
      <ul>
        {shows.map((show) => (
          <li key={show.name} className="border-b border-border px-5 py-6 last:border-0">
            <p className="text-base font-medium text-foreground">{show.name}</p>
            <p className="mt-0.5 text-sm text-muted-foreground">{show.when}</p>
          </li>
        ))}
      </ul>
    </div>
  );
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    30
  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

  • AI Glow Border

    AI Glow Border

  • Metaballs

    Metaballs

  • Voronoi

    Voronoi

  • Water

    Water

  • ASCII

    ASCII