Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: add missing app key for transitions (#8385)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 21, 2022
1 parent e1ab5cf commit b9d83b3
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docs/content/1.getting-started/5.transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,16 @@ Both `pageTransition` and `layoutTransition` keys accept [`TransitionProps`](htt

```ts [nuxt.config.ts]
export default defineNuxtConfig({
pageTransition: {
name: 'fade',
mode: 'out-in' // default
},
layoutTransition: {
name: 'slide',
mode: 'out-in' // default
}
app: {
pageTransition: {
name: 'fade',
mode: 'out-in' // default
},
layoutTransition: {
name: 'slide',
mode: 'out-in' // default
}
}
})
```

Expand Down Expand Up @@ -257,8 +259,10 @@ Or globally in the `nuxt.config`:

```ts [nuxt.config.ts]
defineNuxtConfig({
pageTransition: false,
layoutTransition: false
app: {
pageTransition: false,
layoutTransition: false
}
})
```

Expand Down

0 comments on commit b9d83b3

Please sign in to comment.