main
|
Last change
on this file since b348db4 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
|
| Line | |
|---|
| 1 | // https://vike.dev/onPageTransitionStart
|
|---|
| 2 |
|
|---|
| 3 | import type { PageContextClient } from "vike/types";
|
|---|
| 4 |
|
|---|
| 5 | export 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.