> For the complete documentation index, see [llms.txt](https://docs.stixgames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stixgames.com/text-animations/typewriting/built-in-text-appearance-vanishing-animations.md).

# Built-in Text Appearance / Vanishing Animations

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><strong>Tag</strong>: <code>&#x3C;fade-in></code></td><td><strong>Parameters</strong>: <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2F2IJLhdxH0MVnDQYK5aEn%2Ffade-in.gif?alt=media&amp;token=916a0849-4bad-4fcc-893a-24ab3a0c2588">fade-in.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;fade-out></code></td><td><strong>Parameters</strong>: <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FUpGM47BmcP92loJB64lB%2Ffade-out.gif?alt=media&amp;token=6b3f8b67-c045-47d4-948e-a0ed54d19f03">fade-out.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;offset-in></code></td><td><strong>Parameters</strong>: <code>d</code>, <code>x</code>, <code>y</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FALVMxuuNnNUz20sj7TSy%2Foffset-in.gif?alt=media&amp;token=81b22561-b9a7-4c6c-bdeb-9405e840c88e">offset-in.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;offset-out></code></td><td><strong>Parameters</strong>: <code>d</code>, <code>x</code>, <code>y</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2F4xIzvpY527dHeiK21gY6%2Foffset-out.gif?alt=media&amp;token=86852904-eb80-4566-8ece-7fa31a24cc78">offset-out.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;random-in></code></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FQPSfZ11vwv96ISVKltEE%2Frandom-in.gif?alt=media&amp;token=f0ad589e-e4e5-405a-b3ac-3949f4d7051b">random-in.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;random-out></code></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FcTz46Gnv4XCU87I7On1d%2Frandom-out.gif?alt=media&amp;token=5019c5db-7c32-430d-be65-90c6d669e0e1">random-out.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;size-in></code></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FUWW9Ze3ULCDZNhaVQaMQ%2Fsize-in.gif?alt=media&amp;token=77c37797-6177-4fbf-a60e-7593869f4e50">size-in.gif</a></td></tr><tr><td><strong>Tag</strong>: <code>&#x3C;size-out></code></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FNbXxGkYeNfmdpBUuqGGj%2Fsize-out.gif?alt=media&amp;token=4f20ce3d-40bc-4d2e-a39f-dd36b476d8a7">size-out.gif</a></td></tr><tr><td><a data-mention href="/text-animations/animations/custom-animations.md">Custom Animations</a></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2F4AZ6kkO0lKyxog4l475F%2Fcustom-in.gif?alt=media&amp;token=903c8a72-6d1b-4733-8aa1-22dc2e19c4e6">custom-in.gif</a></td></tr><tr><td><a data-mention href="/text-animations/animations/custom-animations.md">Custom Animations</a></td><td><strong>Parameters</strong>: <code>a</code>, <code>d</code></td><td><a href="https://101455922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsXRHzPpSiweEUfocjZwl%2Fuploads%2FvIjKUv9dPGHTxqpGtGkr%2Fcustom-out.gif?alt=media&amp;token=b059e571-3696-4adf-b982-fca0c29f8ac9">custom-out.gif</a></td></tr></tbody></table>

### Parameter Types

<table><thead><tr><th width="178">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>a</code></td><td><strong>Amplitude</strong>, the strength of an effect. A higher amplitude creates a stronger effect.<br>For example, the distance a letter moves in <code>random-in</code> or <code>random-out</code> or the target font size (in percent) for <code>size-in</code> and <code>size-out</code>.</td></tr><tr><td><code>d</code></td><td><strong>Duration</strong>, the time in seconds until the text has fully faded in or out.</td></tr><tr><td><code>x</code></td><td><strong>X Offset</strong>, the amount of horizontal offset.</td></tr><tr><td><code>y</code></td><td><strong>Y Offset</strong>, the amount of vertical offset.</td></tr></tbody></table>

## Changing text appearance / vanishing speed

The speed at which text is appearing and vanishing can be changed in the [Text Animation Settings](/text-animations/text-animation-settings.md). Make sure you've added your text animation settings object to your animated text element in UI builder, or the settings will not be applied to your element.

There is also a special control tag (`<speed>`) for speeding up or slowing down text dynamically, more in [Typewriter Control Tags](/text-animations/typewriting/typewriter-control-tags.md).

## Examples

<table><thead><tr><th width="452">Code</th><th>Explanation</th></tr></thead><tbody><tr><td><code>Example &#x3C;fade-in>text&#x3C;/fade-in>!</code></td><td>The word text uses the <strong>Fade in</strong> text appearance animation. If the <a data-mention href="/text-animations/text-animation-settings.md">Text Animation Settings</a> have default animations, the fade-in is layered on top of them. <br>If the settings has <strong>Fallback Animations</strong> set up, the fade-in replaces them.</td></tr><tr><td><code>&#x3C;fade-in>&#x3C;fade-out>Example text</code></td><td>It's not necessary to close the tags at the end, if you want to change text appearance / vanishing animations for the whole text.</td></tr><tr><td><code>&#x3C;fade-in>Example &#x3C;size-in a=2>text&#x3C;/size-in>&#x3C;/fade-in></code></td><td>It's possible to layer different kinds of animations.</td></tr></tbody></table>

## Performance cost

The type and amount of animations you use should not significantly impact performance. Most of the performance cost is up-front when you set your text and is mostly dependent on the length of your text.

Check out the [Performance Optimization Guide](/text-animations/performance-optimization-guide.md) for more information.

***

Check out [Custom Animations](/text-animations/animations/custom-animations.md) and [Custom C# Animations](/text-animations/c-extensions/custom-c-animations.md) if you want to extend the asset with your own animations.

Is an important animation missing? Or maybe an animation tag doesn't support a parameter you'd like to use? Contact me via the [contact form](https://stixgames.com/contact/), or join my [Discord](https://discord.gg/jvBFhQA) and I'll try my best to help you!
