Getting Started
Components
Special Effects
Animations
Text Animations
Backgrounds
A description for Scroll Progress component.
motion-sv
Note: The scroll progress is shown below the navbar of the page.
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/scroll-progress.json
Install dependencies
Install the required packages for this component:
pnpm add motion-sv
Copy the Source Code
Copy and paste the following code into your project:
scroll-progress.svelte
index.ts
Folder Structure
Folder Structure
Props
ScrollProgress
A component for Scroll Progress.
| Name | Type | Default | Description |
|---|---|---|---|
class | string | "" | Additional CSS classes to apply |