fix(intro): correctly set isIntro to false

This commit is contained in:
2026-02-13 18:08:09 +01:00
parent 8d9e4a0eff
commit 106bf4a20a

View File

@@ -25,7 +25,11 @@ export const useIntroStore = defineStore("intro", {
const logoDuration = totalFrames / 25; const logoDuration = totalFrames / 25;
gsap gsap
.timeline() .timeline({
onComplete: () => {
this.isIntro = false;
},
})
.to( .to(
this.intro, this.intro,
{ {
@@ -43,13 +47,6 @@ export const useIntroStore = defineStore("intro", {
ease: "steps(" + (totalFrames - 1) + ")", ease: "steps(" + (totalFrames - 1) + ")",
}, },
4.1, 4.1,
)
.call(
() => {
this.isIntro = false;
},
[],
4.1,
); );
}, },