---
title: "Page and view transitions · vuejs.school"
description: "Fade or slide between pages with Transition around the router view, let Nuxt do it with pageTransition and layoutTransition, and let the browser morph a product image from the grid into its page with the View Transitions API."
canonical_url: "https://vuejs.school/learn/animation/page-and-view-transitions"
meta:
  "og:description": "Fade or slide between pages with Transition around the router view, let Nuxt do it with pageTransition and layoutTransition, and let the browser morph a product image from the grid into its page with the View Transitions API."
  "og:image": "https://vuejs.school/_og/d/a_~UGFnZSBhbmQgdmlldyB0cmFuc2l0aW9ucyDCtyB2dWVqcy5zY2hvb2w%2Cc_OgCard.takumi%2Ctitle_Page%2Band%2Bview%2Btransitions%2Cdescription_~RmFkZSBvciBzbGlkZSBiZXR3ZWVuIHBhZ2VzIHdpdGggVHJhbnNpdGlvbiBhcm91bmQgdGhlIHJvdXRlciB2aWV3LCBsZXQgTnV4dCBkbyBpdCB3aXRoIHBhZ2VUcmFuc2l0aW9uIGFuZCBsYXlvdXRUcmFuc2l0aW9uLCBhbmQgbGV0IHRoZSBicm93c2VyIG1vcnBoIGEgcHJvZHVjdCBpbWFnZSBmcm9tIHRoZSBncmlkIGludG8gaXRzIHBhZ2Ugd2l0aCB0aGUgVmlldyBUcmFuc2l0aW9ucyBBUEku%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiA0IG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vcGFnZS1hbmQtdmlldy10cmFuc2l0aW9ucyI%2Cs_ldv-RFx2SnEq4i_O.png"
  "og:image:alt": "Page and view transitions · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Page and view transitions · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~UGFnZSBhbmQgdmlldyB0cmFuc2l0aW9ucyDCtyB2dWVqcy5zY2hvb2w%2Cc_OgCard.takumi%2Ctitle_Page%2Band%2Bview%2Btransitions%2Cdescription_~RmFkZSBvciBzbGlkZSBiZXR3ZWVuIHBhZ2VzIHdpdGggVHJhbnNpdGlvbiBhcm91bmQgdGhlIHJvdXRlciB2aWV3LCBsZXQgTnV4dCBkbyBpdCB3aXRoIHBhZ2VUcmFuc2l0aW9uIGFuZCBsYXlvdXRUcmFuc2l0aW9uLCBhbmQgbGV0IHRoZSBicm93c2VyIG1vcnBoIGEgcHJvZHVjdCBpbWFnZSBmcm9tIHRoZSBncmlkIGludG8gaXRzIHBhZ2Ugd2l0aCB0aGUgVmlldyBUcmFuc2l0aW9ucyBBUEku%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiA0IG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vcGFnZS1hbmQtdmlldy10cmFuc2l0aW9ucyI%2Cs_ldv-RFx2SnEq4i_O.png"
  "twitter:image:alt": "Page and view transitions · vuejs.school"
---

> Index of every page on this site: [llms.txt](https://vuejs.school/llms.txt)

# **Page and view transitions**

Fade or slide between pages with Transition around the router view, let Nuxt do it with pageTransition and layoutTransition, and let the browser morph a product image from the grid into its page with the View Transitions API.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuejs.school/#website","@type":"WebSite","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school/","publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#webpage","@type":"WebPage","description":"Fade or slide between pages with Transition around the router view, let Nuxt do it with pageTransition and layoutTransition, and let the browser morph a product image from the grid into its page with the View Transitions API.","name":"Page and view transitions","url":"https://vuejs.school/learn/animation/page-and-view-transitions","breadcrumb":{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/animation/page-and-view-transitions"]}],"primaryImageOfPage":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/#identity","@type":"Organization","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school","logo":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#article","description":"Fade or slide between pages with Transition around the router view, let Nuxt do it with pageTransition and layoutTransition, and let the browser morph a product image from the grid into its page with the View Transitions API.","headline":"Page and view transitions","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~UGFnZSBhbmQgdmlldyB0cmFuc2l0aW9ucyDCtyB2dWVqcy5zY2hvb2w%2Cc_OgCard.takumi%2Ctitle_Page%2Band%2Bview%2Btransitions%2Cdescription_~RmFkZSBvciBzbGlkZSBiZXR3ZWVuIHBhZ2VzIHdpdGggVHJhbnNpdGlvbiBhcm91bmQgdGhlIHJvdXRlciB2aWV3LCBsZXQgTnV4dCBkbyBpdCB3aXRoIHBhZ2VUcmFuc2l0aW9uIGFuZCBsYXlvdXRUcmFuc2l0aW9uLCBhbmQgbGV0IHRoZSBicm93c2VyIG1vcnBoIGEgcHJvZHVjdCBpbWFnZSBmcm9tIHRoZSBncmlkIGludG8gaXRzIHBhZ2Ugd2l0aCB0aGUgVmlldyBUcmFuc2l0aW9ucyBBUEku%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiA0IG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vcGFnZS1hbmQtdmlldy10cmFuc2l0aW9ucyI%2Cs_ldv-RFx2SnEq4i_O.png","@type":["Article","TechArticle"],"articleSection":["Animation"],"author":{"@id":"https://vuejs.school/#identity"},"image":{"@id":"https://vuejs.school/#/schema/image/1"},"isPartOf":{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#webpage"},"keywords":["\u003CRouterView v-slot>","pageTransition","layoutTransition","document.startViewTransition()","view-transition-name"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/animation/page-and-view-transitions#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Skill tree","item":"https://vuejs.school/track","position":1},{"@type":"ListItem","name":"Animation","item":"https://vuejs.school/track/animation","position":2},{"@type":"ListItem","name":"Page and view transitions","position":3}]},{"@id":"https://vuejs.school/#logo","@type":"ImageObject","caption":"vuejs.school","contentUrl":"https://vuejs.school/apple-touch-icon.png","inLanguage":"en","url":"https://vuejs.school/apple-touch-icon.png"},{"@id":"https://vuejs.school/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuejs.school/_og/d/a_~UGFnZSBhbmQgdmlldyB0cmFuc2l0aW9ucyDCtyB2dWVqcy5zY2hvb2w%2Cc_OgCard.takumi%2Ctitle_Page%2Band%2Bview%2Btransitions%2Cdescription_~RmFkZSBvciBzbGlkZSBiZXR3ZWVuIHBhZ2VzIHdpdGggVHJhbnNpdGlvbiBhcm91bmQgdGhlIHJvdXRlciB2aWV3LCBsZXQgTnV4dCBkbyBpdCB3aXRoIHBhZ2VUcmFuc2l0aW9uIGFuZCBsYXlvdXRUcmFuc2l0aW9uLCBhbmQgbGV0IHRoZSBicm93c2VyIG1vcnBoIGEgcHJvZHVjdCBpbWFnZSBmcm9tIHRoZSBncmlkIGludG8gaXRzIHBhZ2Ugd2l0aCB0aGUgVmlldyBUcmFuc2l0aW9ucyBBUEku%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiA0IG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vcGFnZS1hbmQtdmlldy10cmFuc2l0aW9ucyI%2Cs_ldv-RFx2SnEq4i_O.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~UGFnZSBhbmQgdmlldyB0cmFuc2l0aW9ucyDCtyB2dWVqcy5zY2hvb2w%2Cc_OgCard.takumi%2Ctitle_Page%2Band%2Bview%2Btransitions%2Cdescription_~RmFkZSBvciBzbGlkZSBiZXR3ZWVuIHBhZ2VzIHdpdGggVHJhbnNpdGlvbiBhcm91bmQgdGhlIHJvdXRlciB2aWV3LCBsZXQgTnV4dCBkbyBpdCB3aXRoIHBhZ2VUcmFuc2l0aW9uIGFuZCBsYXlvdXRUcmFuc2l0aW9uLCBhbmQgbGV0IHRoZSBicm93c2VyIG1vcnBoIGEgcHJvZHVjdCBpbWFnZSBmcm9tIHRoZSBncmlkIGludG8gaXRzIHBhZ2Ugd2l0aCB0aGUgVmlldyBUcmFuc2l0aW9ucyBBUEku%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiA0IG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vcGFnZS1hbmQtdmlldy10cmFuc2l0aW9ucyI%2Cs_ldv-RFx2SnEq4i_O.png"}]}
```