diff --git a/src/popup.ts b/src/popup.ts index c44281e0..d02bf36f 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -486,6 +486,9 @@ async function runThePopup(messageListener?: MessageListener): Promise { hideButton.src = chrome.runtime.getURL("icons/visible.svg"); } hideButton.addEventListener("click", () => { + const stopAnimation = AnimationUtils.applyLoadingAnimation(hideButton, 0.4); + stopAnimation(); + if (segmentTimes[i].hidden === SponsorHideType.Hidden) { hideButton.src = chrome.runtime.getURL("icons/visible.svg"); segmentTimes[i].hidden = SponsorHideType.Visible;