div-radial-gradient

Radial gradient.

JSON

{
  type*: "radial_gradient",
  center_x: div-radial-gradient-center,
  center_y: div-radial-gradient-center,
  colors*: [ "string", ... ],
  radius: div-radial-gradient-radius
}

Parameters

ParametersDescription
center_x

object

Shift of the central point of the gradient relative to the left edge along the X axis.

The value has the type div-radial-gradient-center.

Default value: {"type": "relative", "value": 0.5 }.

center_y

object

Shift of the central point of the gradient relative to the top edge along the Y axis.

The value has the type div-radial-gradient-center.

Default value: {"type": "relative", "value": 0.5 }.

colors

array

Required parameter.

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

The minimum number of elements is 2.

radius

object

Radius of the gradient transition.

The value has the type div-radial-gradient-radius.

Default value: {"type": "relative", "value": "farthest_corner" }.

type

string

Required parameter.

The value must always be radial_gradient.

ParametersDescription
center_x

object

Shift of the central point of the gradient relative to the left edge along the X axis.

The value has the type div-radial-gradient-center.

Default value: {"type": "relative", "value": 0.5 }.

center_y

object

Shift of the central point of the gradient relative to the top edge along the Y axis.

The value has the type div-radial-gradient-center.

Default value: {"type": "relative", "value": 0.5 }.

colors

array

Required parameter.

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

The minimum number of elements is 2.

radius

object

Radius of the gradient transition.

The value has the type div-radial-gradient-radius.

Default value: {"type": "relative", "value": "farthest_corner" }.

type

string

Required parameter.

The value must always be radial_gradient.