---
title: "Animating lists with TransitionGroup · vuejs.school"
description: "Animate a list as rows enter, leave and change place, with a stable key on every row, the -move class that does FLIP for you, a leaving row taken out of the flow, and a stagger from the row's index."
canonical_url: "https://vuejs.school/learn/animation/animating-lists-with-transitiongroup"
meta:
  "og:description": "Animate a list as rows enter, leave and change place, with a stable key on every row, the -move class that does FLIP for you, a leaving row taken out of the flow, and a stagger from the row's index."
  "og:image": "https://vuejs.school/_og/d/a_~QW5pbWF0aW5nIGxpc3RzIHdpdGggVHJhbnNpdGlvbkdyb3VwIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Animating%2Blists%2Bwith%2BTransitionGroup%2Cdescription_~QW5pbWF0ZSBhIGxpc3QgYXMgcm93cyBlbnRlciwgbGVhdmUgYW5kIGNoYW5nZSBwbGFjZSwgd2l0aCBhIHN0YWJsZSBrZXkgb24gZXZlcnkgcm93LCB0aGUgLW1vdmUgY2xhc3MgdGhhdCBkb2VzIEZMSVAgZm9yIHlvdSwgYSBsZWF2aW5nIHJvdyB0YWtlbiBvdXQgb2YgdGhlIGZsb3csIGFuZCBhIHN0YWdnZXIgZnJvbSB0aGUgcm93J3MgaW5kZXgu%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiAyIG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vYW5pbWF0aW5nLWxpc3RzLXdpdGgtdHJhbnNpdGlvbmdyb3VwIg%2Cs_kcAWmjaQuBwrqIzB.png"
  "og:image:alt": "Animating lists with TransitionGroup · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Animating lists with TransitionGroup · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~QW5pbWF0aW5nIGxpc3RzIHdpdGggVHJhbnNpdGlvbkdyb3VwIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Animating%2Blists%2Bwith%2BTransitionGroup%2Cdescription_~QW5pbWF0ZSBhIGxpc3QgYXMgcm93cyBlbnRlciwgbGVhdmUgYW5kIGNoYW5nZSBwbGFjZSwgd2l0aCBhIHN0YWJsZSBrZXkgb24gZXZlcnkgcm93LCB0aGUgLW1vdmUgY2xhc3MgdGhhdCBkb2VzIEZMSVAgZm9yIHlvdSwgYSBsZWF2aW5nIHJvdyB0YWtlbiBvdXQgb2YgdGhlIGZsb3csIGFuZCBhIHN0YWdnZXIgZnJvbSB0aGUgcm93J3MgaW5kZXgu%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiAyIG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vYW5pbWF0aW5nLWxpc3RzLXdpdGgtdHJhbnNpdGlvbmdyb3VwIg%2Cs_kcAWmjaQuBwrqIzB.png"
  "twitter:image:alt": "Animating lists with TransitionGroup · vuejs.school"
---

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

# **Animating lists with TransitionGroup**

Animate a list as rows enter, leave and change place, with a stable key on every row, the -move class that does FLIP for you, a leaving row taken out of the flow, and a stagger from the row's index.

```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/animating-lists-with-transitiongroup#webpage","@type":"WebPage","description":"Animate a list as rows enter, leave and change place, with a stable key on every row, the -move class that does FLIP for you, a leaving row taken out of the flow, and a stagger from the row's index.","name":"Animating lists with TransitionGroup","url":"https://vuejs.school/learn/animation/animating-lists-with-transitiongroup","breadcrumb":{"@id":"https://vuejs.school/learn/animation/animating-lists-with-transitiongroup#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/animation/animating-lists-with-transitiongroup"]}],"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/animating-lists-with-transitiongroup#article","description":"Animate a list as rows enter, leave and change place, with a stable key on every row, the -move class that does FLIP for you, a leaving row taken out of the flow, and a stagger from the row's index.","headline":"Animating lists with TransitionGroup","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~QW5pbWF0aW5nIGxpc3RzIHdpdGggVHJhbnNpdGlvbkdyb3VwIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Animating%2Blists%2Bwith%2BTransitionGroup%2Cdescription_~QW5pbWF0ZSBhIGxpc3QgYXMgcm93cyBlbnRlciwgbGVhdmUgYW5kIGNoYW5nZSBwbGFjZSwgd2l0aCBhIHN0YWJsZSBrZXkgb24gZXZlcnkgcm93LCB0aGUgLW1vdmUgY2xhc3MgdGhhdCBkb2VzIEZMSVAgZm9yIHlvdSwgYSBsZWF2aW5nIHJvdyB0YWtlbiBvdXQgb2YgdGhlIGZsb3csIGFuZCBhIHN0YWdnZXIgZnJvbSB0aGUgcm93J3MgaW5kZXgu%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiAyIG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vYW5pbWF0aW5nLWxpc3RzLXdpdGgtdHJhbnNpdGlvbmdyb3VwIg%2Cs_kcAWmjaQuBwrqIzB.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/animating-lists-with-transitiongroup#webpage"},"keywords":["\u003CTransitionGroup>","-move class","stable keys","position: absolute on leave","stagger with --i"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/animation/animating-lists-with-transitiongroup#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/animation/animating-lists-with-transitiongroup#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":"Animating lists with TransitionGroup","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_~QW5pbWF0aW5nIGxpc3RzIHdpdGggVHJhbnNpdGlvbkdyb3VwIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Animating%2Blists%2Bwith%2BTransitionGroup%2Cdescription_~QW5pbWF0ZSBhIGxpc3QgYXMgcm93cyBlbnRlciwgbGVhdmUgYW5kIGNoYW5nZSBwbGFjZSwgd2l0aCBhIHN0YWJsZSBrZXkgb24gZXZlcnkgcm93LCB0aGUgLW1vdmUgY2xhc3MgdGhhdCBkb2VzIEZMSVAgZm9yIHlvdSwgYSBsZWF2aW5nIHJvdyB0YWtlbiBvdXQgb2YgdGhlIGZsb3csIGFuZCBhIHN0YWdnZXIgZnJvbSB0aGUgcm93J3MgaW5kZXgu%2Ceyebrow_~QW5pbWF0aW9uIMK3IExlc3NvbiAyIG9mIDQ%2Ctint_sand%2Cp_Ii9sZWFybi9hbmltYXRpb24vYW5pbWF0aW5nLWxpc3RzLXdpdGgtdHJhbnNpdGlvbmdyb3VwIg%2Cs_kcAWmjaQuBwrqIzB.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~QW5pbWF0aW5nIGxpc3RzIHdpdGggVHJhbnNpdGlvbkdyb3VwIMK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