opacity static method
- List<
ScalarKeyframe> keyframes, - Easing easing,
- 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.
-
keyframesThe list of keyframes that specify how the opacity changes over time. -
easingThe easing to apply during keyframe interpolation. -
interpolationModeThe 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);