Skip to content

Commit e444fa9

Browse files
authored
Smoothing transition while refreshing sponsor icons (#3895)
Fade in and out sponsor icons on refresh
1 parent 0acc0e4 commit e444fa9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/Sponsor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export default class Sponsor {
2020
this._api.loadSponsorTile(DarkTheme.enabled ? 'dark' : 'light', this._name,
2121
(content) => {
2222
if (content) {
23-
this._div.html(content);
23+
this._div.fadeOut(500, () => {
24+
this._div.html(content);
25+
this._div.fadeIn(500);
26+
});
2427
this._div.show();
2528
} else {
2629
this._div.hide();

0 commit comments

Comments
 (0)