mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-19 03:56:17 +08:00
fix(timer progress): mini and bar style not animating when shown
This commit is contained in:
parent
790fc8cb38
commit
d06203cf2d
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ const miniEl = $("#liveStatsMini .time");
|
|||
|
||||
export function show(): void {
|
||||
if (Config.mode !== "zen" && Config.timerStyle === "bar") {
|
||||
barEl.stop(true, true).removeClass("hidden").animate(
|
||||
barEl.stop(true, true).removeClass("hidden").css("opacity", 0).animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
|
@ -28,7 +28,7 @@ export function show(): void {
|
|||
125
|
||||
);
|
||||
} else if (Config.mode === "zen" || Config.timerStyle === "mini") {
|
||||
miniEl.stop(true, true).removeClass("hidden").animate(
|
||||
miniEl.stop(true, true).removeClass("hidden").css("opacity", 0).animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue