From d43fcba221d26adf335033b7e21def3eda9904a7 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 11 Dec 2025 22:13:12 +0100 Subject: [PATCH] fix: background loader not showing --- frontend/src/ts/elements/loader.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/elements/loader.ts b/frontend/src/ts/elements/loader.ts index 929fcdcb5..7af076380 100644 --- a/frontend/src/ts/elements/loader.ts +++ b/frontend/src/ts/elements/loader.ts @@ -1,4 +1,4 @@ -import { animate, JSAnimation } from "animejs"; +import { JSAnimation } from "animejs"; import { requestDebouncedAnimationFrame } from "../utils/debounced-animation-frame"; import { qsr } from "../utils/dom"; @@ -7,7 +7,7 @@ let showAnim: JSAnimation | null = null; export function show(instant = false): void { requestDebouncedAnimationFrame("loader.show", () => { - showAnim = animate(element, { + showAnim = element.animate({ opacity: 1, duration: 125, delay: instant ? 0 : 125, @@ -21,7 +21,7 @@ export function show(instant = false): void { export function hide(): void { requestDebouncedAnimationFrame("loader.hide", () => { showAnim?.pause(); - animate(element, { + element.animate({ opacity: 0, duration: 125, onComplete: () => {