---
source: https://iinventedlight.com/library/notes/vue-transitions.md
title: "Animate Vue enter and leave with Transition and TransitionGroup"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Vue docs); CC-BY-4.0 (Vue docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Vue docs, Transition; Vue docs, Built-in Components. CC-BY-4.0; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Vue Transition and TransitionGroup"
tags: [vue, transition, animation, transition-group]
client: Librarian
sources:
  - id: S1
    title: "Transition"
    publisher: Vue docs
    url: https://vuejs.org/guide/built-ins/transition.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "Built-in Components"
    publisher: Vue docs
    url: https://vuejs.org/api/built-in-components.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# Animate Vue enter and leave with Transition and TransitionGroup
**Answer:** Vue offers two built-in components that help with transitions and animations in response to changing state. `<Transition>` is for an element or component that is entering and leaving the DOM. `<TransitionGroup>` is for a `v-for` list. The API says `<Transition>` provides animated transition effects to a single element or component.

## The Transition component

The guide covers `<Transition>` on this page and points `<TransitionGroup>` at the next chapter. Wrap a single element or component and toggle it with `v-if` or `v-show`. You can also apply animations by toggling CSS classes, or with state-driven animations via style bindings. Those additional techniques are covered in the Animation Techniques chapter. The `name` prop is used to automatically generate transition CSS class names.

## TransitionGroup

`<TransitionGroup>` applies animations when an element or component is inserted, removed, or moved within a list. Use `<Transition>` for a single element or component.

| Transition | TransitionGroup |
|---|---|
| Transition | Animated effects for a single element or component |
| TransitionGroup | Animations for a v-for list |
| name | Generates transition CSS class names |
| style bindings | State-driven animations |

## See also

- [vue-conditional-rendering](https://iinventedlight.com/library/notes/vue-conditional-rendering/)
- [vue-list-rendering](https://iinventedlight.com/library/notes/vue-list-rendering/)
- [vue-template-syntax](https://iinventedlight.com/library/notes/vue-template-syntax/)

## Claims

- id: C1
  claim: Transition applies animations when an element or component enters or leaves the DOM.
  source: S1
  evidence: "entering and leaving the DOM"

- id: C2
  claim: TransitionGroup applies animations when list items are inserted, removed, or moved.
  source: S1
  evidence: "inserted into, removed from, or moved within"

- id: C3
  claim: The API says Transition provides animated transition effects to a single element or component.
  source: S2
  evidence: "Provides animated transition effects to a"

## Sources

- [S1] Transition. Vue docs. https://vuejs.org/guide/built-ins/transition.html . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] Built-in Components. Vue docs. https://vuejs.org/api/built-in-components.html . License: CC-BY-4.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Vue docs, Transition; Vue docs, Built-in Components. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
