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.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
fix: hide Text Fill's More options when it would be empty
matin8755fc6ef664
diff --git a/animations/01-scroll-based/text-fill-on-scroll/index.html b/animations/01-scroll-based/text-fill-on-scroll/index.htmlindex 167c0219..4a57aaf7 100644--- a/animations/01-scroll-based/text-fill-on-scroll/index.html+++ b/animations/01-scroll-based/text-fill-on-scroll/index.html@@ -204,7 +204,8 @@}choices('finish-seg',d=>{completeAt=+d.at;render()});choices('color-sw',d=>textEl.style.setProperty('--fill-accent',d.c));- cursorTog.addEventListener('change',()=>{colorSetting.hidden=!cursorTog.checked;render()});+ // With the highlight off there is no color to choose, so that setting (and More options, which holds only it) is hidden.+ const moreOptions=document.querySelector('.hb-options'); cursorTog.addEventListener('change',()=>{colorSetting.hidden=moreOptions.hidden=!cursorTog.checked;render()});measure();render();</script>diff --git a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md b/docs/superpowers/plans/2026-09-29-scroll-content-part2.mdindex aff20a79..6b797e80 100644--- a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md+++ b/docs/superpowers/plans/2026-09-29-scroll-content-part2.md@@ -790,7 +790,7 @@ None: leave out the `details.hb-options` block.| Setting | Control | Choices or range (value shown) | Default | Hint | Sets in the demo ||---|---|---|---|---|---|-| Highlight color | Swatches; shown only when Highlights the current word is on | Blue · Green · Orange | Blue | The color of the word being filled. | `--fill-accent` on the text: `#6ea8ff` / `#5fd88a` / `#ff9d5c` |+| Highlight color | Swatches; shown only when Highlights the current word is on (More options, which holds only it, is hidden with it) | Blue · Green · Orange | Blue | The color of the word being filled. | `--fill-accent` on the text: `#6ea8ff` / `#5fd88a` / `#ff9d5c` |- **Removed:**- The note, and the Scroll and Words filled readouts.@@ -822,6 +822,7 @@ None: leave out the `details.hb-options` block.- **README Production notes:** unchanged- **Category line:** `01.22 · Scroll-Based`- **Pager:** Previous: Smooth (Inertia) Scroll (`../smooth-scroll/`) · Next: Scroll Velocity Skew (`../scroll-velocity-skew/`)+- **Final fix wave (2026-09-30):** the final category review found More options opening onto nothing when Highlights the current word is off, because Highlight color is the only setting in it. `details.hb-options` is now hidden together with the color setting (`colorSetting.hidden = moreOptions.hidden`), as Section Wipe does, and shows again with the switch.---