From d74469d7f58268536d329130171bb86b5aa449d6 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Thu, 19 Dec 2024 13:33:34 +0100 Subject: [PATCH] fix: CSS View Transitions module, the View Transition API --- files/en-us/web/api/pagerevealevent/index.md | 2 +- files/en-us/web/api/pageswapevent/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/pagerevealevent/index.md b/files/en-us/web/api/pagerevealevent/index.md index 5b1b4c96837dacf..04f9011dbe626b3 100644 --- a/files/en-us/web/api/pagerevealevent/index.md +++ b/files/en-us/web/api/pagerevealevent/index.md @@ -9,7 +9,7 @@ browser-compat: api.PageRevealEvent The **`PageRevealEvent`** event object is made available inside handler functions for the {{domxref("Window.pagereveal_event", "pagereveal")}} event. -During a cross-document navigation, it allows you to manipulate a related [view transition](/en-US/docs/Web/API/View*Transition_API) (providing access to the relevant {{domxref("ViewTransition")}} object) from the document being navigated _to_, if a view transition was triggered by the navigation. +During a cross-document navigation, it allows you to manipulate a related [view transition](/en-US/docs/Web/API/View_Transition_API) (providing access to the relevant {{domxref("ViewTransition")}} object) from the document being navigated _to_, if a view transition was triggered by the navigation. Outside view transitions, this event is also useful for cases such as triggering a startup animation, or reporting a page view. It's equivalent to the first {{domxref("Window.requestAnimationFrame()")}} run after a cross-document navigation, if you were to trigger `requestAnimationFrame()` in the {{htmlelement("head")}} of the document. For example, if you ran the following `reveal()` function in the ``: diff --git a/files/en-us/web/api/pageswapevent/index.md b/files/en-us/web/api/pageswapevent/index.md index 7f8beec453d00aa..f308f1ba48ac73a 100644 --- a/files/en-us/web/api/pageswapevent/index.md +++ b/files/en-us/web/api/pageswapevent/index.md @@ -9,7 +9,7 @@ browser-compat: api.PageSwapEvent The **`PageSwapEvent`** event object is made available inside handler functions for the {{domxref("Window.pageswap_event", "pageswap")}} event. -The `pageswap` event is fired when you navigate across documents, when the previous document is about to unload. During a cross-document navigation, the `PageSwapEvent` event object allows you to manipulate the related [view transition](/en-US/docs/Web/API/View*Transition_API) (providing access to the relevant {{domxref("ViewTransition")}} object) from the document being navigated _from_, if a view transition was triggered by the navigation. It also provides access to information on the navigation type and current and destination documents. +The `pageswap` event is fired when you navigate across documents, when the previous document is about to unload. During a cross-document navigation, the `PageSwapEvent` event object allows you to manipulate the related [view transition](/en-US/docs/Web/API/View_Transition_API) (providing access to the relevant {{domxref("ViewTransition")}} object) from the document being navigated _from_, if a view transition was triggered by the navigation. It also provides access to information on the navigation type and current and destination documents. ## Constructor