div-text-range-mask-particles

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

Parameters

Parameters Description
color

string

Required parameter.

The color of particles on the mask.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

Functionality is under development.

type

string

Required parameter.

The value must always be particles.

Functionality is under development.

density

number

The density of particles on the mask. Interpreted as the probability of a particle to appear in a given point on the mask.

Default value: 0.8.

Functionality is under development.

is_animated

bool

Enables animation for particles on the mask. The animation looks like a smooth movement of particles across the mask, same as in Telegram.

Default value: false.

Functionality is under development.

is_enabled

bool

Controls the mask state. If set to true, the mask will hide the specified part of text. Otherwise, the text will be shown.

Default value: true.

Functionality is under development.

particle_size

object

The size of a single particle on the mask.

The value has the type div-fixed-size.

Default value: {"type":"fixed","value":1}.

Functionality is under development.

JSON
{
  type*: "particles",
  color*: "string",
  density: "number",
  is_animated: "bool",
  is_enabled: "bool",
  particle_size: {
    type*: "fixed",
    unit: "string",
    value*: "int"
  }
}