Skip to content

Commit 4ff5d01

Browse files
authored
feat: add anime when route switch
1 parent 03a0a18 commit 4ff5d01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.vitepress/theme/Layout.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useMediumZoom } from './useMediumZoom'
66
import { useRoute } from 'vitepress/dist/client/app/router'
77
88
const { isDark } = useData()
9+
const route = useRoute()
910
const enableTransitions = () =>
1011
'startViewTransition' in document &&
1112
window.matchMedia('(prefers-reduced-motion: no-preference)').matches

0 commit comments

Comments
 (0)