Back to AIX Effects LibraryQA Verified · Synced
Scroll & Motion/<ScrollProgressIndicator />·Beginner

Scroll Progress Indicator

Lightweight passive scroll implementation updating smoothly via GPU transforms and inline SVG path math.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
Scroll inner box below
0%
0%

01. Passive Listener Architecture: Measures container scrollTop ratio without layout polling.

02. Top Hairline Track: Maps progress cleanly across hardware scaleX transform.

03. SVG Dashoffset Geometry: Computes stroke circumference accurately from ring diameter.

04. Tabular Clarity: Prevents horizontal numeric wobble as percentages cross two digits.

05. End Checkpoint: Settles crisp at 100% upon reaching footer boundary.

Scroll specimen body or adjust progress slider control.

Installation

Zero External Dependencies

Zero external packages needed.

Usage

import { ScrollProgressIndicator } from '@/components/effects/library/scroll/ScrollProgressIndicator'

<ScrollProgressIndicator
  accentColor="#536dfe"
  ringSize={56}
  showLinearBar
/>

Props & API Reference

3 props
PropTypeDefaultDescriptionEffect
accentColorstring'#536dfe'Linear bar & SVG circle stroke color.Colors reading gauge.
ringSizenumber52Circular SVG gauge size in pixels.Resizes dial diameter.
showLinearBarbooleantrueShows or hides paired linear progress rule.Toggles top horizontal line.

More in Scroll & Motion

View All 36 →
Atelier
SCROLL CONTAINER SPECIMEN

Scroll-aware header compressing cleanly from 76px to 56px.

01 · Threshold 18px: Applies translucent 72px frosted glass surface & bottom hairline.
02 · Threshold 165px: Compacts cleanly to 56px with elevated contrast CTA pill.
03 · Smart Hide 240px: Hides on downward scroll and reveals smoothly scrolling back up.

Sticky Navbar Scroll Behavior

Multi-state sticky header morphing 76px -> 72px -> 56px with top progress thread and Smart Hide.

View Details
01 · PINNED SHELL
RENDER
Pinned Visual

Sticky Scroll Reveal

Two-column sticky reveal pairing scrollable documentation items with a stationary visual deck.

View Details
Scrub continuous 0 -> 1 timeline35%
02 · MORPH35%

Scroll-Driven Storytelling

Continuous 0..1 scrub timeline transforming scale, rotation, and border-radius smoothly.

View Details