div-linear-gradient

Linear gradient.

Parameters

Parameters Description
colors

array

Required parameter.

Colors. Gradient points are located at an equal distance from each other.

The minimum number of elements is 2.

type

string

Required parameter.

The value must always be gradient.

angle

int

Angle of gradient direction.

Restriction for the value x: x >= 0 && x <= 360.

Default value: 0.

JSON
{
  type*: "gradient",
  angle: "int",
  colors*: [ "string", ... ]
}