diff --git a/app/composables/useMenuAnimation.ts b/app/composables/useMenuAnimation.ts index b6f0f28..c05aea4 100644 --- a/app/composables/useMenuAnimation.ts +++ b/app/composables/useMenuAnimation.ts @@ -10,10 +10,9 @@ export const useMenuAnimation = (key: string, isOpen: Ref) => { })); watch(isOpen, (current, previous) => { + animation.value.playing = true; + const timeline = gsap.timeline({ - onStart: () => { - animation.value.playing = true; - }, onComplete: () => { animation.value.playing = false; },