From e444fa9aa7432e53c35fb7ea2ff58e1d35e1a04d Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 14 Apr 2024 13:27:42 +0200 Subject: [PATCH] Smoothing transition while refreshing sponsor icons (#3895) Fade in and out sponsor icons on refresh --- src/js/Sponsor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/Sponsor.js b/src/js/Sponsor.js index 14b9b30e6c..99b2e5ef36 100644 --- a/src/js/Sponsor.js +++ b/src/js/Sponsor.js @@ -20,7 +20,10 @@ export default class Sponsor { this._api.loadSponsorTile(DarkTheme.enabled ? 'dark' : 'light', this._name, (content) => { if (content) { - this._div.html(content); + this._div.fadeOut(500, () => { + this._div.html(content); + this._div.fadeIn(500); + }); this._div.show(); } else { this._div.hide();