FANCYUI
Reading bar — box progress
A reading bar that tracks one scrolling box, not the page.
Use in FancyUI
-
pnpm add fancy-ui-svelteimport { ScrollProgress } from "fancy-ui-svelte";
- Type
- Interaction
- Interaction
- Scroll
- Style
- Minimal
- Code availability
- Open source
Why it works
The bar tracks an element's own scroll, so it means how far into this — an article, a changelog, a panel — rather than how far down the page.
When to use it
Long content inside a scrolling container.
Things to watch
Exposed as `role="progressbar"` with `aria-valuenow`. Nested scroll containers each need their own bar.
Implementation clues
- target element
- scaleX from scrollTop / scrollHeight
- position inline