Added a hidden "Animation Speed" setting (defaults to 0.5s)

This commit is contained in:
nuttylmao
2025-05-06 21:10:11 +10:00
parent ffd19e148b
commit a446ebb005
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -56,6 +56,8 @@ const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", true);
const furryMode = GetBooleanParam("furryMode", false);
const animationSpeed = GetIntParam("animationSpeed", 0.5);
// Set fonts for the widget
document.body.style.fontFamily = font;
document.body.style.fontSize = `${fontSize}px`;
@@ -71,6 +73,9 @@ document.documentElement.style.setProperty('--background', `${background}${hexOp
// Get a list of chatters to ignore
const ignoreUserList = ignoreChatters.split(',').map(item => item.trim().toLowerCase()) || [];
// Set the animation speed
document.documentElement.style.setProperty('--animation-speed', `${animationSpeed}s`);
/////////////////////////
+3 -3
View File
@@ -109,12 +109,12 @@ li {
}
.slide-fade li {
transition: all 1s ease-out;
opacity: 1;
transition: all var(--animation-speed) ease-out;
/* opacity: 1; */
}
.slide-fade li.show {
opacity: 1;
/* opacity: 1; */
}
#IPutThisHereSoICanCalculateHowBigEachMessageIsSupposedToBeBeforeIAddItToTheMessageList {