div-text-range-mask-particles

A mask to hide text (spoiler) that looks like randomly distributed particles (telegram alike).

Parameters

Parameters Description
color

string

Required parameter.

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

Density of particles on the mask, interpreted as a probability of a particle to spawn in a given point on the mask.

Default value: 0.8.

Functionality is under development.

is_animated

bool

Defines whether particles on the mask will be animated or not. Animation looks like smooth random particle movements (telegram alike).

Default value: false.

Functionality is under development.

is_enabled

bool

Controls mask state: if set to true mask will hide specified part of the text, otherwise the text will be shown.

Default value: true.

Functionality is under development.

particle_size

object

Size of a single particle on a 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"
  }
}