Glowing Scroll Indicator
An animated scroll progress indicator with glowing bars that light up as you scroll.
Component preview
Install using CLI
npx shadcn@latest add "https://www.obsidianui.dev/r/glowing-scroll-indicator.json"Install Manually
1
Install dependencies
npm install motion
2
Copy the source code
Copy the code into components/block/glowing-scroll-indicator.tsx
Usage
Code
import { GlowingScrollIndicator } from "@/components/block/glowing-scroll-indicator"export function Demo() {return (<><GlowingScrollIndicator scrollContainerId="scroll-area" direction="vertical" /><div id="scroll-area" className="h-[400px] overflow-y-auto">{/* Scrollable content */}</div></>)}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| scrollContainerId | string | 'scroll-target' | Container ID |
| direction | 'vertical' | 'horizontal' | 'vertical' | Direction |
Last updated on