> For the complete documentation index, see [llms.txt](https://anufrievroman.gitbook.io/freepaths/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anufrievroman.gitbook.io/freepaths/basic-tutorials/animations.md).

# Animations

To create animated gif files of phonon trajectories, simply add the following to your input file:

```
NUMBER_OF_TIMESTEPS            = 300

# Animation parameters:
OUTPUT_PATH_ANIMATION          = True
OUTPUT_TRAJECTORIES_OF_FIRST   = 30
OUTPUT_ANIMATION_FPS           = 24
```

Note that `NUMBER_OF_TIMESTEPS` should not be too large, otherwise the generation of animation may take a very long time, because one frame for each time step will be created. A few hundred time steps is a reasonable value. The file below shows an example of animated phonon trajectories:

{% file src="/files/9hQKaog2hT9paAvkU2Mu" %}
Example of animated phonon paths.
{% endfile %}

{% hint style="info" %}
Note that the library used to create animations (imageio) often introduces breaking changes, so the animation functionality may not work as expected.
{% endhint %}
