← All notes

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

Sources

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

Permanent ID: iil:note:kb37mxtt

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.},
}

Markdown

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.

All artifact files (JSON index)

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.