File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { animate , JSAnimation } from "animejs" ;
1+ import { JSAnimation } from "animejs" ;
22import { requestDebouncedAnimationFrame } from "../utils/debounced-animation-frame" ;
33import { qsr } from "../utils/dom" ;
44
@@ -7,7 +7,7 @@ let showAnim: JSAnimation | null = null;
77
88export 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 {
2121export function hide ( ) : void {
2222 requestDebouncedAnimationFrame ( "loader.hide" , ( ) => {
2323 showAnim ?. pause ( ) ;
24- animate ( element , {
24+ element . animate ( {
2525 opacity : 0 ,
2626 duration : 125 ,
2727 onComplete : ( ) => {
You can’t perform that action at this time.
0 commit comments