Skip to content

Commit

Permalink
docs: add demo for view transitions api
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Jan 10, 2024
1 parent 2b41735 commit 3c5ea34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/1.getting-started/5.transitions.md
Expand Up @@ -414,6 +414,8 @@ Remember, this page transition cannot be overridden with `definePageMeta` on ind

Nuxt ships with an experimental implementation of the [**View Transitions API**](https://developer.chrome.com/docs/web-platform/view-transitions) (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)). This is an exciting new way to implement native browser transitions which (among other things) have the ability to transition between unrelated elements on different pages.

You can check a demo on https://nuxt-view-transitions.surge.sh and the [source on StackBlitz](https://stackblitz.com/edit/nuxt-view-transitions).

The Nuxt integration is under active development, but can be enabled with the `experimental.viewTransition` option in your configuration file:

```ts [nuxt.config.ts]
Expand Down

0 comments on commit 3c5ea34

Please sign in to comment.