diff --git a/src/content/docs/basics/javascript.mdx b/src/content/docs/basics/javascript.mdx index 0a80e69..28c6d07 100644 --- a/src/content/docs/basics/javascript.mdx +++ b/src/content/docs/basics/javascript.mdx @@ -217,4 +217,4 @@ Similarly, `pagereveal` listeners allow you to tweak view transition names and t ### Activation Object -The `pageswap` event also provides a [`NavigationActivation`](https://developer.mozilla.org/en-US/docs/Web/API/NavigationActivation) object via its `activation` property, offering details about the current page (`from`) and next page (`entry`). While the `pagereveal` event does not include this property, in browsers supporting the Navigation API, you can use `navigation.activation` to access information about the previous page (`from`) and current page (`entry`). +The `pageswap` event also provides a [`NavigationActivation`](https://developer.mozilla.org/en-US/docs/Web/API/NavigationActivation) object via its `activation` property, offering details about the current page (`from`) and next page (`entry`). While the `pagereveal` event does not include this property you can use `navigation.activation` to access information about the previous page (`from`) and current page (`entry`). Use with some caution: the Navigation API only became baseline in late 2025. \ No newline at end of file diff --git a/src/content/docs/basics/levels.mdx b/src/content/docs/basics/levels.mdx index 53f0c83..2ec0e4b 100644 --- a/src/content/docs/basics/levels.mdx +++ b/src/content/docs/basics/levels.mdx @@ -39,7 +39,7 @@ Part two indeed adds extensions for cross-document view transitions, but also fe ### Cross-Document * The `@view-transition{ navigation: auto }` at-rule to opt in to [cross-document view transitions](/basics/javascript/#cross-document-view-transitions). * `pageswap` and `pagereveal` [events](/basics/javascript/#pageswap-and-pagereveal-events) that give access to the view transition object on the old and new page. -* An [`activation`](/basics/javascript/#activation-object) property on `pageswap` holds a `NavigationActivation` object from the Navigation API, even if the browser doesn't otherwise support the Navigation API. But there is nothing equivalent on `pagereveal`. +* An [`activation`](/basics/javascript/#activation-object) property on `pageswap` holds a `NavigationActivation` object from the Navigation API. There are no equivalent on properties on `pagereveal`. Use `navigation.activation` from the Navigation API instead. ### Extensions for Both, Same- and Cross-Document * The [`view-transition-class`](/basics/styling/#with-classes) property and selector syntax to address multiple pseudo-elements with a single selector. diff --git a/src/content/docs/fwvt/enabling.mdx b/src/content/docs/fwvt/enabling.mdx index a561922..aa94606 100644 --- a/src/content/docs/fwvt/enabling.mdx +++ b/src/content/docs/fwvt/enabling.mdx @@ -240,11 +240,11 @@ For your own site, you will have more specific knowledge of what to wait for. Yo If you've been following along, you'll be rewarded with a site that delivers smooth page transitions across all your navigations. -These are the default settings the Navigation API applies when used without additional configuration: +These are the default settings the View Transition API applies when used without additional configuration: - A single animation spans the entire viewport. - The animation lasts 250 milliseconds using CSS's default `ease` timing function. -- The animation is a cross-fade: the opacity of the old page fades out from 1 to 0, while the opacity of the new page fades in from 0 to 1. +- The animation is a cross fade: the old page fades out as its opacity goes from 1 to 0, while the new page fades in with its opacity going from 0 to 1. - The animation kicks in when you follow links and if you traverse through the browser history using backward / forward navigation. - Loading a page via the address bar or explicitly reloading a page (pressing F5 or Cmd-R) will not show view transitions. diff --git a/src/content/docs/tips/view-transition-fails-and-fixes.mdx b/src/content/docs/tips/view-transition-fails-and-fixes.mdx index c6550f8..26f7035 100644 --- a/src/content/docs/tips/view-transition-fails-and-fixes.mdx +++ b/src/content/docs/tips/view-transition-fails-and-fixes.mdx @@ -429,7 +429,7 @@ Typically, browsers suppress view transitions on navigation if they already have The `popstate` and `navigation` events have a `hasUAVisualTransition` property which you can use to skip your own view transitions when the browser has already started a native one. -Sadly, `popstate` does not fire for cross-document navigation, and not all browsers that support the view transition API also support the Navigation API. +Sadly, `popstate` does not fire for cross-document navigation, and evn though it is now baseline not all browsers versions support the Navigation API. As a last resort, you could completely skip view transitions when the `activation.navigationType` of the `pageswap` event equals `'traverse'`. diff --git a/src/content/docs/tools/turn-signal.mdx b/src/content/docs/tools/turn-signal.mdx index 8b3a742..52d229c 100644 --- a/src/content/docs/tools/turn-signal.mdx +++ b/src/content/docs/tools/turn-signal.mdx @@ -44,7 +44,7 @@ The Turn-Signal package is a set of scripts for enhancement of cross-document vi ## PREREQUISITE :::info -The Turn-Signal scripts are designed for use with cross-document view transitions. With the exception of the _forced_traversal_ script, all scripts will even work with none or only small limitations on browsers that do not support the Navigation API. Looking at you, Safari. +The Turn-Signal scripts are designed for use with cross-document view transitions. With the exception of the _forced_traversal_ script, all scripts will even work with none or only small limitations on browsers that do not support the Navigation API. ::: ## Demos @@ -273,8 +273,8 @@ Just changing the direction of the animations would lead to something best named The scripts set transition types and direction attributes on the old page and the new page of the cross-document view transition. Even though CSS for animating cross-document view transitions is [always taken from the new page](/tips/css/#animations), there is an important use case for directions on the old page: You can exclude elements from view transitions depending on the direction. -:::note[Limitations on Safari] -The current versions of Safari support cross-document view transitions, but they do not support the Navigation API and consequently will not set the index properties in the `activation` object of the `pageswap` event. As a consequence, the turn-signal scripts can not determine types on the old page during history traversals (forward/backward navigation using browser buttons) and only set the `old` type on Safari. On the new page, types are set the same way as for all other browsers. +:::note[Known Limitations] +Navigation API is baseline since late 2025. Older browsers might not support the Navigation API and will therefore not set the index properties in the `activation` object of the `pageswap` event. As a consequence, the turn-signal scripts can not determine types on the old page during history traversals (forward/backward navigation using browser buttons) and only set the `old` type. On the new page, types are set the same way as for all other browsers. ::: With directions on the old page you can not only exclude new images but also old images!