# Animations

<figure><img src="../.gitbook/assets/animations/animations.png" alt="" width="563"><figcaption><p>Editor (Animations)</p></figcaption></figure>

> **Info:**
Each animation is its own file in the animations folder, named after its identifier, and shared by every hologram. Five examples ship with the plugin: rainbow, bounce, welcome, news and spinner. Run /pholo reload after editing a file by hand.

## Animations

Put `{anim:<name>}` in a text line to show an animation there, such as `{anim:rainbow}`. The rest of the line stays as typed, so one line can mix animated and plain text. Every player sees the same frame at the same time.

**Editor > Animations** lists every animation with a preview, the token to copy and its wrap form. New animations, copies and deletions are saved to the file straight away.

## Wrapping Text

Put text between `{anim:<name>}` and `{/anim}` (or `{/anim:<name>}`) to give that text the animation's effect instead of the animation's own text, such as `{anim:rainbow}%player_name%{/anim}.`. Only the wrapped part moves; the full stop stays as typed. Placeholders in the wrapped text are filled in for each player first, so a wave never splits a name.

| Type | Wrapped text |
| ---- | ------------ |
| Color Wave | The colors run through the wrapped text. |
| Typewriter | The wrapped text is typed out, then held for the Pause. |
| Scroll | The wrapped text slides past, a Width of characters at a time. |
| Bounce | The wrapped text gets the colors; the whole line bounces. |
| Frames | The wrapped text is shown as typed. |

Text after the closing tag goes back to the color it had before the opening tag. Wraps cannot be nested; the outer one wins. With an unknown animation name the tags are dropped and the text is shown as typed.

## Name

The name used in the token, 1 to 48 lowercase letters, numbers, `_` or `-`, and not taken by another animation. Lines that used the old name need the new token.

<figure><img src="../.gitbook/assets/animations/name.png" alt="" width="563"><figcaption><p>Edit Animation (Identifier)</p></figcaption></figure>

## Animation Type

| Type | Shows |
| ---- | ----- |
| Frames | Each of your frames in turn. |
| Typewriter | The text typed out one character at a time, then held for the Pause. |
| Scroll | The text sliding past, a Width of characters at a time. |
| Color Wave | The text with your colors running through it. Bold, italic and the other formats in the text are kept. |

<figure><img src="../.gitbook/assets/animations/animation-type.png" alt="" width="563"><figcaption><p>Edit Animation (Animation Type)</p></figcaption></figure>

## Interval

How many ticks each frame shows, from 1 to 1200. 20 ticks are one second.

<figure><img src="../.gitbook/assets/animations/interval.png" alt="" width="563"><figcaption><p>Edit Animation (Interval)</p></figcaption></figure>

## Frames

Frames only. The lines shown one after another. A frame can hold color codes and placeholders.

<figure><img src="../.gitbook/assets/animations/frames.png" alt="" width="563"><figcaption><p>Edit Animation (Frames)</p></figcaption></figure>

## Text

Typewriter, Scroll and Color Wave. The text that is animated.

<figure><img src="../.gitbook/assets/animations/text.png" alt="" width="563"><figcaption><p>Edit Animation (Text)</p></figcaption></figure>

## Pause

Typewriter only. How many frames the full text stays before it is typed again, up to 400.

<figure><img src="../.gitbook/assets/animations/pause.png" alt="" width="563"><figcaption><p>Edit Animation (Pause)</p></figcaption></figure>

## Width

Scroll only. How many characters are shown at once, from 1 to 200.

<figure><img src="../.gitbook/assets/animations/width.png" alt="" width="563"><figcaption><p>Edit Animation (Width)</p></figcaption></figure>

## Colors

Color Wave only. The colors that run through the text, as `#RRGGBB` or `r,g,b`. Without any, a rainbow is used.

<figure><img src="../.gitbook/assets/animations/colors.png" alt="" width="563"><figcaption><p>Edit Animation (Colors)</p></figcaption></figure>

## Token

The token to put in a text line, with how many frames the animation has and a preview of one of them.

<figure><img src="../.gitbook/assets/animations/token.png" alt="" width="563"><figcaption><p>Animations (rainbow)</p></figcaption></figure>

## Delete

Deletes the animation, after a confirmation. Lines that still use its token show the token as typed.

<figure><img src="../.gitbook/assets/animations/delete.png" alt="" width="563"><figcaption><p>Edit Animation (Delete)</p></figcaption></figure>

## Text Tokens

Tokens are filled in before `%player%`, `%page%` and PlaceholderAPI, so an animation frame or an animation's text can hold a placeholder. It is filled in for each player before the text is animated.

| Token | Shows | Example |
| ----- | ----- | ------- |
| `{anim:<name>}` | The current frame of the animation. | `{anim:rainbow}` |
| `{anim:<name>}...{/anim}` | The text in between with the animation's effect. | `{anim:rainbow}%player_name%{/anim}` |
| `{countdown:<date>}` | The time left until the date, then the ended text. The date is `yyyy-MM-dd HH:mm:ss`, `yyyy-MM-dd HH:mm` or `yyyy-MM-dd`. | `{countdown:2026-12-25 00:00}` |
| `{date:<pattern>}` | The current date or time, in a Java date pattern. | `{date:HH:mm}`, `{date:EEEE d MMMM}` |

Countdowns and dates update every second, in the [Time Zone](../configurations/main-configuration.md#time-zone) of the settings. The countdown wording, the ended text and the language of day and month names are in the translation file. A token that cannot be read is left as typed.

Source: https://www.phoenixplugins.com/docs/phoenix-holograms/features/animations