source: pages/+onPageTransitionStart.ts@ 8ee4553

main
Last change on this file since 8ee4553 was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago

scaffold Vike app with Bati

  • Property mode set to 100644
File size: 361 bytes
RevLine 
[8ee4553]1// https://vike.dev/onPageTransitionStart
2
3import type { PageContextClient } from "vike/types";
4
5export async function onPageTransitionStart(pageContext: Partial<PageContextClient>) {
6 console.log("Page transition start");
7 console.log("pageContext.isBackwardNavigation", pageContext.isBackwardNavigation);
8 document.body.classList.add("page-transition");
9}
Note: See TracBrowser for help on using the repository browser.