div-color-animator

Color animator.

Parameters

Parameters Description
duration

int

Required parameter.

Animation duration in milliseconds.

Restriction for the value x: x >= 0.

end_value

string

Required parameter.

Value that will be set at the end of animation.

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

id

string

Required parameter.

Animator identificator

type

string

Required parameter.

The value must always be color_animator.

variable_name

string

Required parameter.

Name of the variable being animated.

cancel_actions

array

Actions performed when the animator is cancelled. For example, when an action with animator_stop type is received

direction

string

Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward.

Possible values: normal, reverse, alternate, alternate_reverse.

Default value: normal.

end_actions

array

Actions performed when the animator completes animation.

interpolator

string

Interpolation function.

Possible values: linear, ease, ease_in, ease_out, ease_in_out, spring.

Default value: linear.

repeat_count

int

The number of times the animation will repeat before it finishes. 0 enables infinite repeats.

Restriction for the value x: x >= 0.

Default value: 1.

start_delay

int

Animation start delay in milliseconds.

Restriction for the value x: x >= 0.

Default value: 0.

start_value

string

Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used.

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

JSON
{
  type*: "color_animator",
  cancel_actions: [
    {
      download_callbacks: {
        on_fail_actions: [ div-action, ... ],
        on_success_actions: [ div-action, ... ]
      },
      is_enabled: "bool_int",
      log_id*: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  direction: "string",
  duration*: "int",
  end_actions: [
    {
      download_callbacks: {
        on_fail_actions: [ div-action, ... ],
        on_success_actions: [ div-action, ... ]
      },
      is_enabled: "bool_int",
      log_id*: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  end_value*: "string",
  id*: "string",
  interpolator: "string",
  repeat_count: "int",
  start_delay: "int",
  start_value: "string",
  variable_name*: "string"
}