# Animation - Layer Parameters

**What is Animation? Why Add Animation?**

Animation refers to adding transitions or emphasis effects to static images, making them appear as if they are in motion.

When creating playable materials, we almost always use static images. By adding animations for these static images, the visuals can become more vivid and instructive, thereby enhancing the content's appeal and the user's trial experience. For example, animation can simulate dynamic effects such as the movement, scaling, and rotation of objects to achieve more expressive visual effects.

## 📒<mark style="color:blue;">Use of Animation</mark>

### 1. Adding Animation

1）Select the single layer or group layer where you want to add animation.

2）Click on "+Add Animation" and choose the appropriate animation from the four types available.

3）Further adjust the animation parameters to complete the animation settings.

<figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FazUMRb1TDtFURnFdx1DK%2Fimage.png?alt=media&#x26;token=836f7e88-9a62-4e8a-aedd-b7139aa5ef05" alt=""><figcaption></figcaption></figure>

### 2. Previewing Animation

1）Click the icon button or "Play" to preview the current single animation within the canvas.

2）If there are multiple animations on the same layer, click "Play all animation" to preview all animations on that layer within the canvas.

3）Click "Stop" or "Stop all animation" to pause the animation preview, and the animation will return to its initial state.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FecEHAYNl2CChdDaQfMDS%2Fimage.png?alt=media&#x26;token=ca968a52-cb31-45db-a5f9-ce6d9e70b8df" alt=""><figcaption></figcaption></figure></div>

### 3.Replacing/Deleting Animation

Clicking the icon button allows you to replace the current animation type or delete the animation.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FAITMfRw6PBc1EwhNNJPd%2Fimage.png?alt=media&#x26;token=81c105a3-1f4c-4c68-9af0-0bf5468b4b00" alt=""><figcaption></figcaption></figure></div>

### 4.Copying Animation

1-1) Copying a single animation: Click the icon button to copy the current individual animation.&#x20;

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F2O3438dAZL3df6b4kdvp%2Fimage.png?alt=media&#x26;token=e67057ca-bc07-4bb9-82b0-610316f0d2e0" alt=""><figcaption></figcaption></figure></div>

1-2) Copying multiple animations: Select the layers with animations and click the copy button.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FFiEKFJIVTfs96YA2cBVi%2Fimage.png?alt=media&#x26;token=5b97bead-c14e-4cf8-91d2-542fc9aca9bf" alt=""><figcaption></figcaption></figure></div>

2）Then, select the layer where you want to apply the animation >>> Paste >>> Paste the layer animation only.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FRrdqNsQTw9b3mNYu8Ul8%2Fimage.png?alt=media&#x26;token=89e5617e-2ce2-4526-a6d5-6014fd119fd1" alt=""><figcaption></figcaption></figure></div>

### 5.Applying to All Layers within the Group

By clicking the icon button "Apply to all layers within the group," you can conveniently copy and paste all animations from the currently selected layer <mark style="color:red;">to all layers at the same hierarchical level.</mark>&#x20;

(When you need to create the same animation for multiple layers at the same hierarchical level, this feature allows for quick reuse.)

<figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F7QncqHFSlz87fK5tEadd%2Fimage.png?alt=media&#x26;token=9edbb666-80ae-448c-906c-2cce543431e4" alt=""><figcaption></figcaption></figure>

## 📒<mark style="color:blue;">Categories and Parameters of Animation</mark>

The animation includes four types:  "**Approach animation", "Exit animation", "Emphasize animation", and "Universal animation"**. Different animations have different parameters.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FgiO8xlayPcIOMdWORJv7%2Fimage.png?alt=media&#x26;token=83aba748-2cc9-49f3-bd0f-485e0c644f6f" alt=""><figcaption></figcaption></figure></div>

### 1. **LoopTimes/Delay/Duration/Autoplay/Name/Opacity/Scale/Displacement/Rotation/Color Change**

<table><thead><tr><th width="152">Image</th><th width="142">Parameter Type</th><th width="204">Parameter Description</th><th>Supplementary Explanation</th></tr></thead><tbody><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F8ab8zHgBlq3LmALRRChl%2Fimage.png?alt=media&#x26;token=c0b962ad-3e64-4813-a702-60add4a9138d" alt="" data-size="original"></td><td><strong>Loop Times</strong></td><td><p>Support 3 cycle modes: </p><p>Play 1 time</p><p>One-way cycle</p><p>Two-way loop</p></td><td><p><strong>①Play 1 time:</strong> The animation plays only once and stops when finished.</p><p><strong>②One-way cycle:</strong> Repeat the animation of K1~K3<br><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2Fi4TGJLX6ZAD8UHqsr9KD%2F%E3%80%90AE%E8%A1%A8%E8%BE%BE%E5%BC%8F%E3%80%91loop%20%E5%BE%AA%E7%8E%AF%E8%AF%A6%E8%A7%A3_%E6%9C%88%E7%A6%BB%E7%9A%84%E4%B8%87%E4%BA%8B%E5%B1%8B%20(1).gif?alt=media&#x26;token=39f9cbd1-bee9-4e68-9417-9db288c0fcb1" alt=""><br><strong>③Two-way loop:</strong> After K1 to K3, then from K3 to K1, and continue.<br><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FkJ8gAN5A6PwIqF4GHq8w%2F%E3%80%90AE%E8%A1%A8%E8%BE%BE%E5%BC%8F%E3%80%91loop%20%E5%BE%AA%E7%8E%AF%E8%AF%A6%E8%A7%A3_%E6%9C%88%E7%A6%BB%E7%9A%84%E4%B8%87%E4%BA%8B%E5%B1%8B.gif?alt=media&#x26;token=6935d675-16ce-4ff5-9ded-2ba061f9a78e" alt=""></p></td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FxoMDJvyehuV5oVM06C8j%2Fimage.png?alt=media&#x26;token=60b0adb2-fd69-42f9-88aa-bdbcc1de65dd" alt=""></td><td><strong>Delay</strong></td><td>The duration of delay before the animation appears/plays.</td><td>Once <mark style="color:red;">enter the scene</mark> where the animation is located, the timer will start automatically.</td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FMxMMl2XgpJ1fMAtRk2DF%2Fimage.png?alt=media&#x26;token=02fbb935-e12d-4128-927a-228d14b87cb0" alt=""></td><td><strong>Duration</strong></td><td>The total time required for a complete playthrough of the animation.</td><td>For the same animation, a longer duration results in slower playback speed, and vice versa.</td></tr><tr><td><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2Fx7WmWRKLfwaXaAOnB91d%2Fimage.png?alt=media&#x26;token=8dc43bc4-0410-47a4-8736-613c7a7f2d05" alt=""></p><p></p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FvVqCbyXvhOsZ58mh60jj%2Fimage.png?alt=media&#x26;token=4bc7310a-920f-497e-be22-f4c23f203f72" alt=""></p></td><td><strong>Autoplay</strong></td><td><p>Default: Autoplay enabled.</p><p>Supports disabling autoplay.</p></td><td><p><strong>①Autoplay:</strong> The animation starts playing automatically <mark style="color:red;">upon entering the scene</mark> where it is located.</p><p><mark style="color:orange;">(please note: If the initial state of the layer where the animation is located is set to "hidden," the animation will automatically play when the layer is <strong>first displayed</strong>.)</mark></p><p><strong>②Disable Autoplay:</strong> After disabling autoplay, the animation won't play by default and needs to be controlled through event settings.</p></td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F1gB5oUVSGFxFNyc2tRar%2Fimage.png?alt=media&#x26;token=7a8ae3df-df3c-4d94-b455-40479b9359b5" alt="" data-size="original"></td><td><strong>Name</strong></td><td>Supports customizing the animation name.</td><td>Tip: When there are multiple animations in a project, renaming them can help with easy reference when setting up events.</td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FgsnjTsieAG20sNE5pMXb%2Fimage.png?alt=media&#x26;token=9b52238c-b6e9-4bc4-9aa1-137b7f4dbe8f" alt="" data-size="original"></td><td><strong>Opacity</strong></td><td>Requires setting "Start" and "End" values.</td><td><p>Value range: 0% to 100%.</p><p>0%: Fully transparent.</p><p>100%: Fully visible.</p></td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FRgbdFwzYZmjeJYuECdUY%2Fimage.png?alt=media&#x26;token=d353e35b-f1eb-4f5e-afa3-ff6db74f5544" alt="" data-size="original"></td><td><strong>Scale</strong></td><td><p>Requires setting "Start Scale" and "End Scale" values.</p><p>Supports setting start/end scale to current value.</p></td><td><p>Scale X: Horizontal scale of the layer.</p><p>Scale Y: Vertical scale of the layer.</p></td></tr><tr><td><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FPll1VEVYHIZfzVvXz5Rf%2Fimage.png?alt=media&#x26;token=f13c830f-d0ea-4ca0-98e1-cda58d1986ae" alt="" data-size="original"></p><p></p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F3Tw4zj7vemhPwKewTbER%2Fimage.png?alt=media&#x26;token=9477b847-e981-4ac7-a525-88756ea19182" alt=""></p><p></p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FW4ye9pi00c192wV15mKD%2Fimage.png?alt=media&#x26;token=69c2d4be-b8b4-4b7b-bd0a-6460a9200b81" alt=""></p></td><td><strong>Displacement</strong></td><td><p><strong>①Requires setting the</strong> </p><p><strong>displacement offset on the X and Y axes:</strong> Positive values represent downward/rightward displacements, while negative values represent upward/leftward displacements. </p><p>Use the red arrow icon to fine-tune the </p><p>displacement offset.</p><p></p><p><strong>②Supports quick setting of the end position:</strong> Click "Show End Position" and drag the semi-transparent layer in the canvas to the target position, then click "Hide End Position."</p></td><td><p><mark style="color:red;"><strong>③Displacement offset supports separate settings for portrait and landscape orientations:</strong></mark> By default, it is selected. When selected, the displacement offset need to be adjusted separately for portrait and landscape orientations (displacement offset set in portrait mode will not be applied in landscape mode). </p><p></p><p>Deselecting it means that the same displacement offset is used for both portrait and landscape orientations without the need for switching adjustments.</p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F1jh5goBd1wr8OP8DLtGP%2Fimage.png?alt=media&#x26;token=6d9c44d6-fec8-4f27-b275-6ab7183df183" alt="" data-size="original"></p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FuUnjGYkgmu1ae1JtNCw2%2Fimage.png?alt=media&#x26;token=9028ec49-176e-48e5-b7d9-6879f0b3c355" alt=""></p></td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FBqsiUjNTOi6dogSVxtY8%2Fimage.png?alt=media&#x26;token=f3375927-3e76-4446-9e7a-2232b84c0612" alt="" data-size="original"></td><td><strong>Rotation</strong></td><td>Requires setting "Start" and "End" values.</td><td>No specific requirements for values; any angle can be set.</td></tr><tr><td><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FPginRCtgVgnqia214Ysv%2Fimage.png?alt=media&#x26;token=6fe872aa-5f93-4b20-8e0d-b4865d8762fc" alt="" data-size="original"></td><td><strong>Color Change</strong></td><td>Requires setting "Start Color" and "End Color".</td><td><p>Select colors from the color palette or use the color picker for quick selection.</p><p><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FcuUIpXkkkndmzab04Q5c%2Fimage.png?alt=media&#x26;token=6f51f667-9f4e-4c6b-938e-6d57465668b9" alt=""></p></td></tr></tbody></table>

### <mark style="color:red;">2. Special Parameter: Curve</mark>

"Universal" category animations additionally support editing the animation's curve.&#x20;

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FCCxSjYkbONGSRgOxZhiu%2Fimage.png?alt=media&#x26;token=35744337-a2aa-4982-bac3-d074a98b7248" alt="" width="563"><figcaption></figcaption></figure></div>

#### 2.1 What is Curve?

"Curve" allows for custom and fine-tuned editing of animations. If the preset animations cannot meet your production needs, you can create more advanced and complex animations by customizing the curve.&#x20;

#### 2.2 Editing the Curve

**1）Click on the curve thumbnail to open the Curve editor:**&#x20;

* The horizontal axis represents time, and the vertical axis represents various variables corresponding to animation (displacement, alpha, spin, scale, color, etc.);
* The starting point (0, 0) is the default initial state of the animation movement, and the end point (1, 1) is the default end state of the animation movement;
* Moving the anchor point laterally will directly change the movement time of the object, and adjusting the slope of the curve will directly change the distribution of the movement speed of the object (the steeper the curve, the faster the speed, the smoother the curve, the slower the speed);

<figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FRhJd8rJcB23L9Cz9zP40%2Fimage.png?alt=media&#x26;token=3cb122e7-b5a6-4c73-858f-1a8b38e558dd" alt=""><figcaption></figcaption></figure>

**2）Edit curve style:**&#x20;

* **Choose curve templates:** The Curve editor provides six preset curve styles that you can select and use.&#x20;
* **Customize curve style:**
  * <mark style="color:red;">**Double-click**</mark> <mark style="color:red;"></mark><mark style="color:red;">anywhere on the curve to add keyframes.</mark>
  * Select a keyframe and drag the handle or use the options on the right to adjust the curve's curvature.
  * Adjust the position by selecting and dragging the keyframe.
  * Delete the current keyframe by selecting it.&#x20;
  * For customized curve styles, you can click "Save current curve," edit the name, and save it as a template for future use.&#x20;
* After setting up the curve, click "Save" for the changes to take effect.

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FjzgD98USD9rrKVzKH0yl%2Fimage.png?alt=media&#x26;token=93f51578-dc3f-4282-a4db-472814c57263" alt="" width="563"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2F0pZLyoXwRa9MCBME1GNJ%2Fimage.png?alt=media&#x26;token=2a733f88-66bd-4176-b3bf-f45f863c2f61" alt="" width="563"><figcaption></figcaption></figure></div>

#### 2.3 Example

Take *Displacement Easing* as an example, the horizontal axis represents time, and the vertical axis represents displacement distance.Below are two common adjustment methods for animations:

| **a. After the object stays at the starting point for a period of time, it starts to move**                                                                                                                    | **b. The object stays at the beginning and end for a period of time and moves back and forth**                                                                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Move the starting point of the curve to the right (delay the animation start time), and the object will complete the movement within the red frame time period;                                                | <p>① \[cycles] select: two-way loop;</p><p>② Move the start point of the curve to the right, and move the end point of the curve to the left (delay the animation start time and end the animation early), the object will complete the movement within the red frame time period;</p> |
| ![](https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FCIEHLn8ohwfDXoym091E%2F3.png?alt=media)                                             | ![](https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FvRaM9pvtmHEvPLSfBQ45%2F5.png?alt=media)                                                                                                                     |
| ![](https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2Fr3Vm8ZI2iau89rqz9P0z%2F1.gif?alt=media\&token=94374379-a726-47ac-b4ff-e3761b0bd553) | ![](https://695199083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4PyzU9CRLR4XKbxmIEid%2Fuploads%2FTsVyc2Vg9KPzAhAgX0JL%2F2.gif?alt=media\&token=1a44254a-eca1-43eb-9f50-d59937997e20)                                                                         |

For more commonly used animation setup methods, please refer to  [creation-tips-animation-setting](https://doc.playturbo.com/playable-tools-content-editor/content-editor-creation-tips-center/common-creation-tips/creation-tips-animation-setting "mention")

## 📒<mark style="color:blue;">Supported Asset Types for Adding Animation</mark>&#x20;

The asset type determines whether it supports adding and using animations. Here are the details:

<table><thead><tr><th width="235">Asset Type</th><th>Support applying animation or not</th><th data-hidden></th><th data-hidden></th></tr></thead><tbody><tr><td><strong>Image</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>Text</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>Sequence</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>Particle</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>DragonBone</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>Group layer</strong></td><td>✅</td><td></td><td></td></tr><tr><td><strong>Interactive area</strong></td><td>×</td><td></td><td></td></tr><tr><td><strong>Video</strong></td><td>×</td><td></td><td></td></tr><tr><td><strong>Sound effects</strong></td><td>×</td><td></td><td></td></tr><tr><td><strong>Background music</strong></td><td>×</td><td></td><td></td></tr><tr><td><strong>Scene</strong></td><td>×</td><td></td><td></td></tr></tbody></table>

👉Recommended Reading： [animation-issues](https://doc.playturbo.com/playable-tools-content-editor/content-editor-faq/animation-issues "mention")  [creation-tips-animation-setting](https://doc.playturbo.com/playable-tools-content-editor/content-editor-creation-tips-center/common-creation-tips/creation-tips-animation-setting "mention")
