feat(intro): play home intro once in the intro screen instead of having weird boolean in app store

This commit is contained in:
2026-01-14 11:59:13 +01:00
parent a044d87977
commit fd06c031d4
8 changed files with 23 additions and 33 deletions

View File

@@ -25,9 +25,6 @@ export const useHomeStore = defineStore("home", {
const timeline = gsap.timeline({
onComplete: () => {
this.isIntro = false;
const app = useAppStore();
app.homeIntroPlayed = true;
},
});
@@ -40,7 +37,7 @@ export const useHomeStore = defineStore("home", {
duration: 0.5,
ease: "none",
},
0.5,
0,
)
.fromTo(
this.intro,
@@ -50,7 +47,7 @@ export const useHomeStore = defineStore("home", {
duration: 0.15,
ease: "none",
},
0.85,
0.35,
);
},