mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Reduced motion disables background transition
This commit is contained in:
parent
de3039977c
commit
c69b8137d7
@ -461,6 +461,7 @@ function switchReducedMotion() {
|
||||
const overrideDuration = power_user.reduced_motion ? 0 : ANIMATION_DURATION_DEFAULT;
|
||||
setAnimationDuration(overrideDuration);
|
||||
$('#reduced_motion').prop('checked', power_user.reduced_motion);
|
||||
$('body').toggleClass('reduced-motion', power_user.reduced_motion);
|
||||
}
|
||||
|
||||
function switchCompactInputArea() {
|
||||
|
@ -419,6 +419,11 @@ hr {
|
||||
transition: background-image 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
body.reduced-motion #bg1,
|
||||
body.reduced-motion #bg_custom {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#version_display {
|
||||
padding: 5px;
|
||||
opacity: 0.8;
|
||||
|
Loading…
Reference in New Issue
Block a user