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.
Scroll this card through the window, and the bar fills while it's in full view.
Markup
<div class="reading-bar" data-cue-scroll="progress"></div>
Options
| Attribute | What it does | Default |
|---|---|---|
data-cue-track | On an ancestor (an article): fill along it instead of the page | the 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.