Scroll Progress Navigation
Scroll Progress Navigation: A floating table-of-contents navigation pill that tracks scroll depth, dynamically morphs between resting and floating states, highlights active sections, and enables smooth scrolling. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Scroll Progress Navigation
npx motion-ui-skill add scroll-progress-navComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Source files
Scroll Progress Navigation
A floating table-of-contents navigation pill that tracks scroll depth, dynamically morphs between resting and floating states, highlights active sections, and enables smooth scrolling.
Install
npx motion-ui-skill add scroll-progress-nav
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Usage
"use client";
import { ScrollProgressNav as ScrollProgressNav } from "@/components/craft/scroll-progress-nav";
export function Example() {
return (
<div className="p-6">
<ScrollProgressNav />
</div>
);
}