fix: block interactions when animation is happening

This commit is contained in:
2025-12-20 14:55:49 +01:00
parent 1857f2fbc6
commit 19450f0bf7
4 changed files with 16 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ export const useContactStore = defineStore("contact", {
},
isIntro: true,
isOutro: true,
isOutro: false,
notifications: [] as string[],
notificationsYOffset: 0,
@@ -30,13 +30,8 @@ export const useContactStore = defineStore("contact", {
animateIntro() {
this.isIntro = true;
const timeline = gsap.timeline({
onComplete: () => {
this.isIntro = false;
},
});
timeline
gsap
.timeline()
.fromTo(
this.intro,
{
@@ -76,7 +71,10 @@ export const useContactStore = defineStore("contact", {
ease: "none",
},
2.3,
);
)
.call(() => {
this.isIntro = false;
});
},
pushNotification(content: string) {