mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix custom bg opacity animation
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user