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

# div-text-range-mask-particles
A mask to hide text (spoiler). Looks like randomly distributed particles, same as in Telegram.

## Parameters
| Parameters | Description |
| --- | --- |
| `color` | <p>**string**</p><p>Required parameter.</p><p>The color of particles on the mask.</p><p>Valid formats: `#RGB`, `#ARGB`, `#RRGGBB`, `#AARRGGBB`.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `particles`.</p><p>Available platforms: Android, iOS, web.</p> |
| `density` | <p>**number**</p><p>The density of particles on the mask. Interpreted as the probability of a particle to appear in a given point on the mask.</p><p>Restriction for the value `x`: `x > 0.0 && x <= 1.0`.</p><p>Default value: `0.8`.</p><p>Available platforms: Android, iOS, web.</p> |
| `is_animated` | <p>**bool**</p><p>Enables animation for particles on the mask. The animation looks like a smooth movement of particles across the mask, same as in Telegram.</p><p>Default value: `false`.</p><p>Available platforms: Android, iOS, web.</p> |
| `is_enabled` | <p>**bool**</p><p>Controls the mask state. If set to `true`, the mask will hide the specified part of text. Otherwise, the text will be shown.</p><p>Default value: `true`.</p><p>Available platforms: Android, iOS, web.</p> |
| `particle_size` | <p>**object**</p><p>The size of a single particle on the mask.</p><p>The value has the type `div-fixed-size`.</p><p>Default value: `{"type":"fixed","value":1}`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "particles",
  color*: "string",
  density: "number",
  is_animated: "bool",
  is_enabled: "bool",
  particle_size: {
    type*: "fixed",
    unit: "string",
    value*: "int"
  }
}
```
</details>
