Cnippet

Scroll Velocity Text

Text 57

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

    686
  • Aero Hero-3

    Aero Hero-3

    583
  • Features

    Features

    516
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    505
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    470
  • Blogs

    Blogs

    398
  • Aero Hero-1

    Aero Hero-1

    364

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    119
  • NeonRGBTextEffect

    NeonRGBTextEffect

    149
  • Rainbow Text Effect

    Rainbow Text Effect

    48
  • Apple Hello Effect

    Apple Hello Effect

    627
  • Text Reveal

    Text Reveal

    30
  • Gradual Spacing

    Gradual Spacing

    300
  • Blur Reveal

    Blur Reveal

    315
  • Animated Text

    Animated Text

    8