feat(nds): add whoosh effect for nds 3d animation and for the gallery transition
This commit is contained in:
@@ -114,6 +114,11 @@ export const useGalleryStore = defineStore("gallery", {
|
||||
this.shouldAnimateOutro = true;
|
||||
navigateTo("/gallery");
|
||||
}, ANIMATION.NAVIGATE_DELAY);
|
||||
|
||||
setTimeout(() => {
|
||||
const { assets } = useAssets();
|
||||
assets.audio.whooshSmall.play(0.6);
|
||||
}, 500);
|
||||
},
|
||||
|
||||
animateOutro() {
|
||||
@@ -191,6 +196,9 @@ export const useGalleryStore = defineStore("gallery", {
|
||||
app.navigateTo("home");
|
||||
app.allowHints();
|
||||
}, ANIMATION.NAVIGATE_DELAY);
|
||||
|
||||
const { assets } = useAssets();
|
||||
assets.audio.whooshSmallReverse.play(0.6);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user