fixed test config animation incorrect length

This commit is contained in:
Miodec 2022-06-24 22:50:04 +02:00
parent 6499cedc28
commit 277604d26b

View file

@ -11,6 +11,7 @@ import * as Misc from "../utils/misc";
export function show(): void {
$("#top .config")
.css("transition", "unset")
.stop(true, true)
.removeClass("hidden")
.css("opacity", 0)
@ -18,12 +19,16 @@ export function show(): void {
{
opacity: 1,
},
125
125,
() => {
$("#top .config").css("transition", "0.125s");
}
);
}
export function hide(): void {
$("#top .config")
.css("transition", "unset")
.stop(true, true)
.css("opacity", 1)
.animate(
@ -32,7 +37,7 @@ export function hide(): void {
},
125,
() => {
$("#top .config").addClass("hidden");
$("#top .config").addClass("hidden").css("transition", "0.125s");
}
);
}