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
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.
License: CC-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.
Cite this
iinventedlight. 2026. "Animate Vue enter and leave with Transition and TransitionGroup." iinventedlight Library, iil:note:kb37mxtt, version of 2026-11-19. https://iinventedlight.com/library/notes/vue-transitions/. License: CC-BY-4.0.
@misc{iil_note_kb37mxtt,
author = {{iinventedlight}},
title = {{Animate Vue enter and leave with Transition and TransitionGroup}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/vue-transitions/},
note = {Permanent ID iil:note:kb37mxtt. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- vue-transitions.table.json (table; CC-BY-4.0)
- vue-transitions.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/vue-transitions.md.