Cnippet

Scroll Velocity Text

Text 3

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 items = [
  { icon: "⚡", label: "Open Source" },
  { icon: "🔒", label: "Type-safe" },
  { icon: "🌙", label: "Dark Mode" },
  { icon: "♿", label: "Accessible" },
  { icon: "✨", label: "Animated" },
  { icon: "🧩", label: "Composable" },
];

export default function ScrollVelocityPills() {
  return (
    <div className="flex min-h-50 items-center justify-center overflow-hidden">
      <ScrollVelocityRow baseVelocity={2.5} scrollReactivity={false}>
        {items.map((item) => (
          <span
            className="mx-3 inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-4 py-1.5 font-medium text-foreground text-sm shadow-sm"
            key={item.label}
          >
            <span>{item.icon}</span>
            {item.label}
          </span>
        ))}
      </ScrollVelocityRow>
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    682
  • Aero Hero-3

    Aero Hero-3

    558
  • Features

    Features

    508
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    484
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    464
  • Blogs

    Blogs

    396
  • Aero Hero-1

    Aero Hero-1

    356

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Loop

    Text Loop

    307
  • Text Reveal

    Text Reveal

    27
  • Animated Text

    Animated Text

    8
  • Apple Hello Effect

    Apple Hello Effect

    609
  • Lightning Text

    Lightning Text

    123