Cnippet

Scroll Velocity Text

Text 54

About

A continuous text marquee whose speed reacts to scroll velocity — the faster you scroll, the faster the marquee moves.

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

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

const words = [
  "React",
  "TypeScript",
  "Tailwind CSS",
  "Motion",
  "Next.js",
  "shadcn/ui",
  "Vite",
  "Radix UI",
];

export default function ScrollVelocityBasic() {
  return (
    <div className="flex min-h-50 items-center justify-center overflow-hidden">
      <ScrollVelocityRow baseVelocity={3}>
        {words.map((word) => (
          <span
            className="mx-6 font-medium text-base text-muted-foreground"
            key={word}
          >
            {word}
            <span className="mx-6 text-muted-foreground/30">•</span>
          </span>
        ))}
      </ScrollVelocityRow>
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    681
  • Aero Hero-3

    Aero Hero-3

    556
  • Features

    Features

    507
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    482
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    463
  • Blogs

    Blogs

    396
  • Aero Hero-1

    Aero Hero-1

    355

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Motion Blur Text

    Motion Blur Text

    36
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Blur Reveal

    Blur Reveal

    297
  • Text Reveal

    Text Reveal

    317
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Glow

    Glow

    41
  • Shine Border

    Shine Border

    950