fix(gallery): sometimes, in 2d mode, scale wasn't animated in the transition

This commit is contained in:
2026-02-26 12:27:54 +01:00
parent 8d18e1ddbb
commit 7e416c2b02
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ export const useGalleryStore = defineStore("gallery", {
}),
actions: {
cleanup() {
gsap.killTweensOf(this.zoom);
gsap.killTweensOf(this.intro);
gsap.killTweensOf(this.outro);
},
animateIntro() {
this.isIntro = true;
this.isOutro = false;