mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 23:36:37 +08:00
fixed test config animation incorrect length
This commit is contained in:
parent
6499cedc28
commit
277604d26b
|
@ -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");
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue