feat(gallery): transition to and from the nds
This commit is contained in:
@@ -133,6 +133,8 @@ const animateIntro = async () => {
|
||||
);
|
||||
};
|
||||
|
||||
const galleryStore = useGalleryStore();
|
||||
|
||||
const animateOutro = async () => {
|
||||
isAnimating.value = true;
|
||||
|
||||
@@ -156,6 +158,7 @@ const animateOutro = async () => {
|
||||
typeText(descriptionText, DESCRIPTION, DESCRIPTION_DURATION, true, {
|
||||
onComplete: async () => {
|
||||
await sleep(ANIMATION_SLEEP * 1000);
|
||||
galleryStore.shouldAnimateOutro = true;
|
||||
router.push("/");
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user