diff options
author | Ajay Ramachandran <[email protected]> | 2019-08-19 17:57:10 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2019-08-19 17:57:10 -0400 |
commit | 50f929c11a014816fa56e03cf226129934ffe599 (patch) | |
tree | b3eb073dd30d005a76f28df89211c534e7034e48 | |
parent | e5e250ff366f1efccb8e08045e67b5ea1b9fcc10 (diff) | |
download | SponsorBlock-50f929c11a014816fa56e03cf226129934ffe599.tar.gz SponsorBlock-50f929c11a014816fa56e03cf226129934ffe599.zip |
Adjusted fade out animation to feel much better
-rw-r--r-- | content.css | 4 | ||||
-rw-r--r-- | utils/skipNotice.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/content.css b/content.css index 590dc05a..d6fd89aa 100644 --- a/content.css +++ b/content.css @@ -87,8 +87,8 @@ padding-right: 5px; } -.sponsorBlockFadeOutAnimiation { - animation: fadeOut 3s; +.sponsorSkipNoticeFadeOut { + animation: fadeOut 3s cubic-bezier(0.55, 0.055, 0.675, 0.19); } .sponsorSkipNoticeTimeLeft { diff --git a/utils/skipNotice.js b/utils/skipNotice.js index b2f982f2..01bba911 100644 --- a/utils/skipNotice.js +++ b/utils/skipNotice.js @@ -178,7 +178,7 @@ class SkipNotice { //start fade out animation let notice = document.getElementById("sponsorSkipNotice" + this.UUID); notice.style.removeProperty("animation"); - notice.classList.add("sponsorBlockFadeOutAnimiation"); + notice.classList.add("sponsorSkipNoticeFadeOut"); } this.updateTimerDisplay(); @@ -198,7 +198,7 @@ class SkipNotice { //remove the fade out class if it exists let notice = document.getElementById("sponsorSkipNotice" + this.UUID); - notice.classList.remove("sponsorBlockFadeOutAnimiation"); + notice.classList.remove("sponsorSkipNoticeFadeOut"); notice.style.animation = "none"; } |