Scroll Progress
A sleek, high-performance scroll progress indicator built with Framer Motion. It provides real-time visual feedback as users scroll through long-form content, featuring a smooth gradient effect and professional aesthetic.
uiframer-motion
Installation
$npx futureuikit add scroll-progress
Import
import { ScrollProgress } from "@/components/ui/ScrollProgress"
Color Theme
Size
Named Keys & Props
Pass these exact named keys as props on <ScrollProgress />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)sizeComponent size"sm""md""lg""xl""2xl"Usage Example
A basic implementation example to get you started.
Example Implementation
import { ScrollProgress } from"@/components/ui/ScrollProgress";
export default function Layout({ children }) {
return (
<>
<ScrollProgress />
{children}
</>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Built with Framer Motion's useScroll hook for precise scroll tracking.
- ◆Smooth, high-performance animation with zero layout shift.
- ◆Customizable gradient colors and height via CSS.
- ◆Fixed positioning ensures visibility at the top of the viewport.
- ◆Perfect for blogs, documentation, and long-form articles.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add scroll-progress'.
- ◆Import:'import { ScrollProgress } from "@/components/ui/ScrollProgress";'
- ◆Setup: Drop the component at the top of your layout or page file. It requires no configuration.
- ◆Tracking: The component automatically tracks the primary viewport scroll progress.
- ◆Customization: Edit the Tailwind gradient classes in the component source to match your branding.