diff options
author | Ajay <[email protected]> | 2023-10-08 16:38:40 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-10-08 16:38:40 -0400 |
commit | 04a9f82bdc87a056c98c25efb4639a68071376d3 (patch) | |
tree | b649f7759f7f361ba506e053c86cf40f18a90f70 /src/utils/animationUtils.ts | |
parent | 39cfdc7b6cfc77d4038dd496daa00c7dac94b00a (diff) | |
download | SponsorBlock-04a9f82bdc87a056c98c25efb4639a68071376d3.tar.gz SponsorBlock-04a9f82bdc87a056c98c25efb4639a68071376d3.zip |
Rename hidden css class to sbhidden to fix compatibility with Piped
Fixes #1865
Diffstat (limited to 'src/utils/animationUtils.ts')
-rw-r--r-- | src/utils/animationUtils.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/animationUtils.ts b/src/utils/animationUtils.ts index d7302c48..08a59ce0 100644 --- a/src/utils/animationUtils.ts +++ b/src/utils/animationUtils.ts @@ -27,7 +27,7 @@ function applyLoadingAnimation(element: HTMLElement, time: number, callback?: () function setupCustomHideAnimation(element: Element, container: Element, enabled = true, rightSlide = true): { hide: () => void; show: () => void } { if (enabled) element.classList.add("autoHiding"); - element.classList.add("hidden"); + element.classList.add("sbhidden"); element.classList.add("animationDone"); if (!rightSlide) element.classList.add("autoHideLeft"); @@ -37,7 +37,7 @@ function setupCustomHideAnimation(element: Element, container: Element, enabled hide: () => { mouseEntered = false; if (element.classList.contains("autoHiding")) { - element.classList.add("hidden"); + element.classList.add("sbhidden"); } }, show: () => { @@ -46,7 +46,7 @@ function setupCustomHideAnimation(element: Element, container: Element, enabled // Wait for next event loop setTimeout(() => { - if (mouseEntered) element.classList.remove("hidden") + if (mouseEntered) element.classList.remove("sbhidden") }, 10); } }; @@ -61,12 +61,12 @@ function setupAutoHideAnimation(element: Element, container: Element, enabled = function enableAutoHideAnimation(element: Element): void { element.classList.add("autoHiding"); - element.classList.add("hidden"); + element.classList.add("sbhidden"); } function disableAutoHideAnimation(element: Element): void { element.classList.remove("autoHiding"); - element.classList.remove("hidden"); + element.classList.remove("sbhidden"); } export const AnimationUtils = { |