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>
);
}








