mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-05-12 02:14:48 +00:00
exit settings animation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user