-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
31 lines (25 loc) · 733 Bytes
/
app.vue
File metadata and controls
31 lines (25 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<template>
<NuxtLayout>
<NuxtPage
:transition="{
name: 'page-transition',
mode: 'out-in',
}"
/>
</NuxtLayout>
</template>
<script setup lang="ts">
import { onMounted } from 'vue';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import { ScrollToPlugin } from 'gsap/ScrollToPlugin';
import { useSettings } from './store/settings';
import { useTransitionComposable } from './composables/transition-composable';
gsap.registerPlugin(ScrollTrigger, ScrollToPlugin);
const { toggleTransitionComplete } = useTransitionComposable();
const { setInitialConfig } = useSettings();
onMounted(() => {
toggleTransitionComplete(false);
setInitialConfig();
});
</script>