mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Added a hidden "Animation Speed" setting (defaults to 0.1s)
This commit is contained in:
@@ -56,6 +56,8 @@ const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", true);
|
||||
|
||||
const furryMode = GetBooleanParam("furryMode", false);
|
||||
|
||||
const animationSpeed = GetIntParam("animationSpeed", 0.1);
|
||||
|
||||
// Set fonts for the widget
|
||||
document.body.style.fontFamily = font;
|
||||
document.body.style.fontSize = `${fontSize}px`;
|
||||
@@ -84,6 +86,9 @@ switch (scrollDirection) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Set the animation speed
|
||||
document.documentElement.style.setProperty('--animation-speed', `${animationSpeed}s`);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user