---
metadata:
  - name: generator
    content: Diplodoc Platform v5.59.0
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-animated-text-gradient.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-animated-text-gradient.md
  - href: https://divkit.tech/docs/en/concepts/divs/2/div-animated-text-gradient.md
    type: text/markdown
    title: Markdown version
  - href: https://divkit.tech/docs/en/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-animated-text-gradient
An animated gradient applied to text glyphs. The nested static gradient moves indefinitely at a linear speed; when `duration` is `0` or global animations are disabled, it remains visible without movement.

## Parameters
| Parameters | Description |
| --- | --- |
| `gradient` | <p>**object**</p><p>Required parameter.</p><p>Static linear or radial gradient moved by the animation.</p><p>The value has the type `div-static-text-gradient`.</p><p>Available platforms: Android.</p><p>List of possible values:<li>[div-linear-gradient](div-linear-gradient.md#div-linear-gradient)</li><li>[div-radial-gradient](div-radial-gradient.md#div-radial-gradient)</li></p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `animated`.</p><p>Available platforms: Android.</p> |
| `duration` | <p>**int**</p><p>Duration of one linear animation cycle in milliseconds. A value of `0` keeps the gradient visible without movement.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `1600`.</p><p>Available platforms: Android.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "animated",
  duration: "int",
  gradient*: div-static-text-gradient
}
```
</details>
