Rolling Ball Scroll Indicator
A playful scroll indicator with a rolling ball that moves and rotates based on scroll progress.
Install using CLI
npx shadcn@latest add "https://obsidianui.dev/r/rolling-ball-scroll-indicator.json"Install Manually
1
Install dependencies
2
Copy the source code
Copy the code into components/ui/rolling-ball-scroll-indicator.tsx
Usage
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| scrollContainerId | string | 'scroll-target' | Container ID |
| direction | 'vertical' | 'horizontal' | 'vertical' | Direction |
