> For the complete documentation index, see [llms.txt](https://devworkshops.gitbook.io/masteringvuejs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devworkshops.gitbook.io/masteringvuejs/getting-started/animation.md).

# Animation

Animation with Vue.js is super easy and effortless. All you need to do is wrap what you want to animate with a `<transition>` tag for a single item or `<transition-group>` for multiple and update the style sheet accordingly.&#x20;

In our scenario, let's wrap the list items with `<transition-group>` as below:

{% code title="index.html" %}

```markup
...
<ul class="list-group mb-2">
    <transition-group name="list">
       ...
    </transition-group>
</ul>
...
```

{% endcode %}

We update now the **main.css** file to include the relevant classes. The name of the transition group is **list** and this will be used to prefix the new classes. Add the following classes to **main.css**:

{% code title="main.css" %}

```css
...
.list-item {
  display: inline-block;
  margin-right: 10px;
}
.list-enter-active,
.list-leave-active {
  transition: all 1s;
}
.list-enter,
.list-leave-to {
  opacity: 0;
  transform: scaleY(1.5);
}
...
```

{% endcode %}

All you need to do now is add items and change filters and you will see the magic happening.

If you want to know more about animation, you can check this [site](https://www.w3schools.com/cssref/css3_pr_transform.asp)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devworkshops.gitbook.io/masteringvuejs/getting-started/animation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
