feat(nds): add whoosh effect for nds 3d animation and for the gallery transition

This commit is contained in:
2026-02-25 23:36:29 +01:00
parent 813dca8943
commit 2d39c7bebd
5 changed files with 10 additions and 10 deletions

View File

@@ -102,6 +102,8 @@ const animateIntro = () => {
if (hasAnimated.value) return;
hasAnimated.value = true;
assets.audio.whoosh.play();
gsap
.timeline()
.to(
@@ -538,11 +540,6 @@ const releaseButton = () => {
};
const handleMouseDown = (event: MouseEvent) => {
if (!hasAnimated.value) {
animateIntro();
return;
}
handleInteraction(event.clientX, event.clientY, (canvas, intersection) => {
dispatchScreenEvent("mousedown", canvas, intersection);
});
@@ -602,11 +599,6 @@ const handleTouchStart = (event: TouchEvent) => {
swipeStartX = touch.clientX;
swipeStartY = touch.clientY;
if (!hasAnimated.value) {
animateIntro();
return;
}
handleInteraction(touch.clientX, touch.clientY, (canvas, intersection) => {
dispatchScreenEvent("mousedown", canvas, intersection);
});