cue

Scroll · data-cue-scroll="progress"

Progress

Fills from the left as you scroll, for a reading bar. Along the whole page, or along the element marked data-cue-track that it sits in. It follows your own scrolling, so it stays with reduced motion.

Live, in the personality you've picked

Scroll this card through the window, and the bar fills while it's in full view.

Markup

html
<div class="reading-bar" data-cue-scroll="progress"></div>

Options

AttributeWhat it doesDefault
data-cue-trackOn an ancestor (an article): fill along it instead of the pagethe page

With motion off

Hidden in browsers without scroll-driven animations; otherwise as normal. Turn motion off at the top of the page to see it.