exit settings animation

This commit is contained in:
MathMan05
2025-10-08 16:01:56 -05:00
parent 0e0344005d
commit 9017dbbf73
2 changed files with 21 additions and 1 deletions
+5 -1
View File
@@ -2122,7 +2122,11 @@ class Settings extends Buttons {
}
hide() {
if (this.html) {
this.html.remove();
const html = this.html;
html.classList.add("bgRemove");
html.addEventListener("animationend", (e: AnimationEvent) => {
if (e.animationName === "bg-out") html.remove();
});
this.html = null;
}
}
+16
View File
@@ -2785,6 +2785,21 @@ ul {
opacity: 1;
}
}
.bgRemove {
animation-duration: 0.2s;
animation-name: bg-out;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
}
@keyframes bg-out {
0% {
opacity: 1;
}
100% {
opacity: 0;
transform: scale(1.1);
}
}
@keyframes fade-in-back {
0% {
opacity: 0;
@@ -3080,6 +3095,7 @@ fieldset input[type="radio"] {
opacity: 0;
}
}
.titlediv {
height: 100%;
}