Scroll Progress
A scroll progress component that allows you to track the progress of a scrollable element.
Made by imskyleenInstallation
Usage
Global
Local
API Reference
ScrollProgressProvider
Prop | Type | Default |
---|---|---|
children | React.ReactNode | - |
global? | boolean | false |
direction? | "horizontal" | "vertical" | vertical |
transition? | SpringOptions | { stiffness: 250, damping: 40, bounce: 0 } |
ScrollProgress
Prop | Type | Default |
---|---|---|
asChild? | boolean | false |
mode? | "width" | "height" | "scaleY" | "scaleX" | width |
...props? | HTMLMotionProps<"div"> | - |
ScrollProgressContainer
Prop | Type | Default |
---|---|---|
asChild? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |