div-radial-gradient

Radial 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 radial_gradient.

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 }.

List of possible values:

  • div-radial-gradient-fixed-center
  • div-radial-gradient-relative-center
  • 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 }.

    List of possible values:

  • div-radial-gradient-fixed-center
  • div-radial-gradient-relative-center
  • radius

    object

    Radius of the gradient transition.

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

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

    List of possible values:

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