Edit this page
onPageTransitionEnd()
hook
The onPageTransitionEnd()
hook, together with onPageTransitionStart()
, enables you to implement page transition animations.
TypeScript
Don't omit
ReturnType<OnPageTransitionEndAsync>
otherwise TypeScript won't strictly check the return type.
See API >
pageContext
> Typescript for more information on how to extendpageContext
with your own extra properties.
Without vike-{react,vue,solid}
If you don't use a UI framework Vike extension vike-react
/vike-vue
/vike-solid
, then make sure to use Client Routing: the onPageTransitionEnd()
hook requires it (it's executed upon client-side navigation).