Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

fix: keep Progress Bar's ring clear of the article title on phones

matinac7455a69df4
diff --git a/animations/01-scroll-based/progress-bar/index.html b/animations/01-scroll-based/progress-bar/index.html
index 56540f2c..472c0f3b 100644
--- a/animations/01-scroll-based/progress-bar/index.html
+++ b/animations/01-scroll-based/progress-bar/index.html
@@ -42,7 +42,8 @@
.circ-text{font-size:9px;font-weight:600;fill:#f4f4f2;text-anchor:middle;dominant-baseline:central}
/* Article */
.article{padding:clamp(20px,4vw,40px);max-width:600px}
- .art-title{font-size:clamp(20px,3vw,28px);font-weight:700;line-height:1.2;margin-bottom:8px}
+ /* the right padding keeps the title's lines clear of the ring in the top-right corner (48px wide, 8px from the edge) */
+ .art-title{font-size:clamp(20px,3vw,28px);font-weight:700;line-height:1.2;margin-bottom:8px;padding-right:40px}
.art-byline{font-size:12px;color:#8a8a92;margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}
.art-body{font-size:15px;line-height:1.8;color:#adadb2;margin-bottom:18px}
.art-pull{border-left:3px solid var(--bar-color);padding-left:16px;font-size:15px;line-height:1.6;margin:24px 0;color:#d6d6da}
diff --git a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md b/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
index 51793e3b..947ecebb 100644
--- a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
+++ b/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
@@ -328,7 +328,7 @@ The two lists below, A and B, were settled after both halves were reviewed. They
- **Player bar:** Play · Back to top
- **Scroller:** `<div class="scroller" id="scroller" data-hb-scroller tabindex="0" role="region" aria-label="An article with a reading progress indicator">` inside the `.stage`. The `.stage` does the job of today's `.stage-wrap`: it holds the three indicators beside the scroller, so they stay in place while the article moves. The script calls it `scroller` wherever it said `stage`. The page adds no focus rule: the shared stylesheet draws the scroller's focus ring inset, inside the stage (rule B2).
- **What scrolling shows:** the article scrolls, and the chosen indicator (a bar along the top, a ring in the top-right corner with the percentage inside, or a rail down the right edge) fills from empty to full, reaching full exactly at the end of the article.
-- **Scroll distance and Play:** the article does not depend on the stage height (measured: 853px on laptops and 1,130px on phones), so the box scrolls about 1.5 box heights on laptops and nearly 3 on phones. Play fills the indicator from 0 to 100% in six seconds.
+- **Scroll distance and Play:** the article does not depend on the stage height (measured: 846px on laptops and 1,126px on a 375px phone), so the box scrolls about 1.5 box heights on laptops and nearly 3 on phones. Play fills the indicator from 0 to 100% in six seconds.
- **Reduced motion:** nothing scrolls by itself, and nothing needs simplifying: the indicators have no transition. The demo's rule goes (it named the old scroller and transitions that do not exist).
- **Stage font:** site font. `.art-title` and `.art-h2` use `font-weight:700` (was `bold`); `.circ-text` drops `var(--mono)`.
- **Stage:**