Animation Action Control Point Map

This structure defines each control point in an animation.

A numeric index defines each progress control point P of the animation curve.

P can be any fraction between 0 and 1.0. An animation will smoothly alter its property value between these progress points during its set AnimationSettings.Literal.duration.

The value for each P index key defines a key frame value V of the property that is being animated. V can be a AnimationActionPoint object which gives you minute control over the curve of the animation at progress control point P. If V is a number it's interpreted as AnimationActionPoint.v with default values used all other animation settings.

Note: If the animation's AnimationSettings.Literal.stopMethod is onetotwo then P may also range to 2. See AnimationSettings.STOP_METHODS.ONETOTWO.

{
// Value starts at 0 with default settings
0: 0,
// Value smoothly transitions midway to 250
0.5: {
v: 250,
sm: 0.2
}
// Value ends at 500 with default settings
1: 500
}

See Action Value for more information.

interface AnimationActionPointMap<ValueType extends AnimatableValueTypes> {
    sm?: number;
    [index: number]: ValueType | AnimationActionPoint<ValueType>;
}

Type Parameters

Indexable

Properties

Properties

sm?: number

Default Smoothness

Default smoothness for each AnimationActionPoint value that does not explicitly provide one.

0.5