From 7126621e830e807f39888be56014b35bc8a02f31 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Mon, 9 Mar 2026 23:05:22 -0500 Subject: [PATCH] fix(docs): make bullet throb repeat on every scroll into view Remove unobserve so bullets reset when scrolled out and throb again on re-entry. Co-Authored-By: Claude Opus 4.6 --- docs/website/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/website/script.js b/docs/website/script.js index 7a9b777..2a56d2c 100644 --- a/docs/website/script.js +++ b/docs/website/script.js @@ -236,15 +236,17 @@ var observer = new IntersectionObserver( function (entries) { entries.forEach(function (entry) { + var li = entry.target; if (entry.isIntersecting) { /* stagger each bullet by its index within the list */ - var li = entry.target; var siblings = Array.from(li.parentElement.children); var idx = siblings.indexOf(li); setTimeout(function () { li.classList.add('in-view'); }, idx * 120); - observer.unobserve(li); + } else { + /* reset when scrolled out so it throbs again on re-entry */ + li.classList.remove('in-view'); } }); },