Skip to content
roguelite labsAnthony Spezzano ↗
motion/scroll-progress

Scroll Progress

Scroll progress indicator. Bar mode renders a fixed top bar; ring mode renders an animated SVG circle.

Use and inspectUse this when the motion supports the surrounding content. Connect callbacks and state to your app, keep the reset preview as a local demonstration, and add a reduced-motion fallback for movement or looping. The preview is synthetic; it does not call a backend.Next: inspect the source below and replace the demo inputs with your own data.
Scroll ProgressScroll progress indicator. Bar mode renders a fixed top bar; ring mode renders an animated SVG circle.
Installnpm install framer-motion

Props

PropTypeDefaultDescription
type"bar" | "ring""ring"Visual style
colorstring"#7c3aed"Progress fill color
sizenumber64Ring size in px (ring mode only)