Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultScrollReading Progress Ring
Rolling Price ToggleBrowse all 182Testimonial Globe
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Reading Progress Ring

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • ScrollTrigger

Setup

npm i gsapregisterPlugin(ScrollTrigger)

More like this

  • Counter
  • Pinned
  • Progress
  • Line drawing
  • ScrollTrigger
  • Sticky
  • SVG

Features.

  • Three reading indicators in one long read: a ring, a bar and a count
  • The ring sits beside the article on a sticky column and tracks only the article, from its top at the top of the screen to its bottom at the bottom
  • The fixed header's full-width bar and "NN% read" count track the whole page, from the very top to the end of the scroll
  • Each indicator eases after the scroll by 0.3s, so wheel steps read as one smooth sweep
  • The ring starts at 12 o'clock and runs clockwise with a round cap; the cap hides at exactly 0% so no dot is left
  • Every indicator is a progressbar with a live aria-valuenow
  • Below 992px the ring shrinks to a small disc pinned bottom-right; below 768px the header drops its title
  • Respects prefers-reduced-motion: the indicators follow the scroll directly, with no easing

How to get it right.

Decide what each indicator measures

The ring answers "how far through this article am I"; the bar and count answer "how far down this page am I". On a page that is mostly the article they agree; with long sections before or after they drift apart, which is the point.

Keep the header if you don't have one

The header is position: fixed at the top of the screen. If your site already has a sticky nav, delete .prg_head and drop a <div class="prg_bar" data-prg-bar></div> into your nav instead. It tracks the page wherever it sits.

Give the article room

The ring only moves while the article is taller than the screen, so it works best on a real long read. Images need width and height so the page doesn't grow after the ring has measured; it measures again on load.

Match the stroke to the size

A 2-unit stroke is a fine line at 12.5em. On the small pinned ring a heavier stroke (3–4) reads better.

Variations.

  • Heavy ring — data-au-stroke="5"
  • Ring only — data-au-percent="false" hides the number in the middle
  • Direct — data-au-scrub="0" follows the scroll with no easing
  • Bar only — keep .prg_head and remove the ring's aside
  • Your palette — override --prg-accent, --prg-fg and --prg-line on the root

Where it fits.

  • Blogs and journals — long articles and essays
  • Documentation — long guides where readers want to know what's left
  • Case studies — a project write-up with a lot of scroll
  • Reports — annual reviews, research write-ups

Frequently asked.

They measure different things. The ring tracks the article section only; the bar and count track the whole page, including the hero above and anything below.

Yes. Each indicator is optional: the script builds whichever of [data-prg-ring], [data-prg-bar] and [data-prg-count] it finds. A ring must sit inside a [data-prg-article].

It tracks the [data-prg-article] it sits in. Move that attribute to the element you want measured, and keep the ring inside it.

It overlays the top 4.25em of the screen. The hero is full-screen so nothing is lost there; if your content starts higher, add padding-top: var(--prg-head-h) to it.

No. It reacts to scroll position, so it works with native scrolling and with any smooth-scroll library that updates ScrollTrigger.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll