Fix custom bg opacity animation

This commit is contained in:
SillyLossy
2023-04-17 22:30:02 +03:00
parent df8fabed28
commit 9f8aa78d8b

View File

@@ -73,19 +73,8 @@ function setCustomBackground() {
$("#custom_bg_preview").css("background-image", file);
}
function animateBgSet(selector, value) {
$(selector).animate({
opacity: 0
}, 500,
function () {
$(this).css('background-image', value).animate({
opacity: 1
}, 500);
});
}
function unsetCustomBackground() {
animateBgSet("#bg_custom", 'none');
$("#bg_custom").css("background-image", 'none');
$("#custom_bg_preview").css("background-image", 'none');
}