Skip to content

Commit d43fcba

Browse files
committed
fix: background loader not showing
1 parent 95bd39a commit d43fcba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/ts/elements/loader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { animate, JSAnimation } from "animejs";
1+
import { JSAnimation } from "animejs";
22
import { requestDebouncedAnimationFrame } from "../utils/debounced-animation-frame";
33
import { qsr } from "../utils/dom";
44

@@ -7,7 +7,7 @@ let showAnim: JSAnimation | null = null;
77

88
export function show(instant = false): void {
99
requestDebouncedAnimationFrame("loader.show", () => {
10-
showAnim = animate(element, {
10+
showAnim = element.animate({
1111
opacity: 1,
1212
duration: 125,
1313
delay: instant ? 0 : 125,
@@ -21,7 +21,7 @@ export function show(instant = false): void {
2121
export function hide(): void {
2222
requestDebouncedAnimationFrame("loader.hide", () => {
2323
showAnim?.pause();
24-
animate(element, {
24+
element.animate({
2525
opacity: 0,
2626
duration: 125,
2727
onComplete: () => {

0 commit comments

Comments
 (0)