# How to create update animations

Update animations are automatically triggered when new data is pushed to a widget via a control node or data node. If an update animation is enabled, any new information entered in the control field (or pushed via a data node) updates with an animation of your choosing. This requires your widget to first be connected to a control node or data node.

### Requirements&#x20;

* A composition with a text widget connected to a control node.

Learn know how to connect a widget to a control node [here](https://developer.singular.live/singular-basics/building-overlays-in-composer/how-to-set-up-control-nodes-to-make-widget-properties-available-to-a-control-app).

### 1. Enable update animation

1. Open a composition and select the widget you want to have an update animation.
2. Click the update tab in the property panel and select **active**.

<figure><img src="https://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FxkWLU1q6MnD1XsCZXl4m%2FEnabling%20update%20animation.gif?alt=media&#x26;token=2ce43060-e855-4319-b8e6-3aaf1b164ccf" alt=""><figcaption><p>Enabling update animation</p></figcaption></figure>

### 2. Choose Out update animation settings

1. In the drop-down menu on the left, set the animation type.
2. In the drop-down menu in the center, set the animation direction.
3. In the drop-down menu on the right, set the animation effect.

<figure><img src="https://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FyOUdw9ZTtRr6nkLy4AEi%2FChoosing%20out%20update%20animation%20settings.gif?alt=media&#x26;token=afebf069-07ec-4a38-82d8-72a00096c740" alt=""><figcaption><p>Choosing out update animation settings</p></figcaption></figure>

### 3. Choose in update animation settings

* Repeat the process from step two for the In animation settings.

<figure><img src="https://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FaTlEb5yujh5pbkWD0BLZ%2FChoosing%20in%20update%20animation%20settings.gif?alt=media&#x26;token=38a14e8c-d0c9-461f-9176-551c0d7edaeb" alt=""><figcaption><p>Choosing in update animation settings</p></figcaption></figure>

### 4. Test

#### To test your settings

* Navigate to the data interface and control panel and update the widget's control node contents.

{% hint style="info" %}
Every time you update the text, the In and Out update animations will be triggered.
{% endhint %}

#### To ensure the text is located where you want it in its bounding box

* Click on the **Toggle Bounding Box** icon above the output screen.

#### To change the justification of the text

1. Select the text tab in the property panel
2. Change the justification in the justification drop-down menu.

<figure><img src="https://1996175074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cdPul5g3lHEzkm2UkSf%2Fuploads%2FO4hu87dOpZ6NEyNCBvFN%2FTesting%20update%20animations.gif?alt=media&#x26;token=aeee7951-f563-4c60-a567-946ad71064a2" alt=""><figcaption><p>Testing update animation</p></figcaption></figure>
