opacity static method

MapItemKeyFrameTrack opacity(
  1. List<ScalarKeyframe> keyframes,
  2. Easing easing,
  3. KeyframeInterpolationMode interpolationMode
)

Creates a keyframe track used to animate the opacity of a map item.

Each scalar keyframe specifies the opacity value (in the range [0.0, 1.0]) at key points of the animation. Values outside this range are clamped by the map item when the animation is applied.

  • keyframes The list of keyframes that specify how the opacity changes over time.

  • easing The easing to apply during keyframe interpolation.

  • interpolationMode The type of interpolation done between keyframe values.

Returns MapItemKeyFrameTrack. MapItemKeyFrameTrack instance.

Throws MapItemKeyFrameTrackInstantiationException. If the supplied keyframe list is empty or first keyframe duration is not 0.

Implementation

static MapItemKeyFrameTrack opacity(List<ScalarKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.opacity(keyframes, easing, interpolationMode);