diff --git a/app/stores/intro.ts b/app/stores/intro.ts index 00775b9..7d2e093 100644 --- a/app/stores/intro.ts +++ b/app/stores/intro.ts @@ -25,7 +25,11 @@ export const useIntroStore = defineStore("intro", { const logoDuration = totalFrames / 25; gsap - .timeline() + .timeline({ + onComplete: () => { + this.isIntro = false; + }, + }) .to( this.intro, { @@ -43,13 +47,6 @@ export const useIntroStore = defineStore("intro", { ease: "steps(" + (totalFrames - 1) + ")", }, 4.1, - ) - .call( - () => { - this.isIntro = false; - }, - [], - 4.1, ); },