From 53d0ac8677cd6b5664a9fabe2036f5650a4303c6 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 6 Feb 2022 21:08:15 -0500 Subject: [PATCH] Add animation to segment hiding --- src/popup.ts | 3 +++ 1 file changed, 3 insertions(+) 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;