pacekit

Motion Scroll Area

Component

About

A custom cross-browser scroll area with smooth lerp-based scrolling and a spring-animated scrollbar thumb that reacts to hover and tap.

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

Code

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

Usage.tsx

import { ScrollArea } from "@/components/ui/motion-scroll-area";

export default function MotionScrollAreaDemo() {
  const tags = Array.from({ length: 40 }).map((_, i) => `Tag ${i + 1}`);

  return (
    <ScrollArea className="h-72 w-56 rounded-md border">
      <div className="p-4">
        <h4 className="mb-4 text-sm font-medium leading-none">Tags</h4>
        {tags.map((tag) => (
          <div key={tag} className="text-sm py-2 border-b">
            {tag}
          </div>
        ))}
      </div>
    </ScrollArea>
  );
}

Dependencies

More by pacekit

View all
  • AI Response Writer

    AI Response Writer

    364
  • Bouncing Text

    Bouncing Text

    23
  • Mouse Wave Text

    Mouse Wave Text

    21
  • Gradient Shadow

    Gradient Shadow

    16
  • Scramble Text

    Scramble Text

    14
  • AI Suggestions

    AI Suggestions

    9
  • Squash Text

    Squash Text

    8
  • GitHub Star Counter

    GitHub Star Counter