From 921c7c79c00645920ab47750c6c489c466957c31 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 13 Apr 2024 23:32:32 +0200 Subject: [PATCH] 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();