Interface ScalarTween

Tween for a scalar property. from/to are raw numbers in the property's own units (alpha 0..1).

interface ScalarTween {
    delay?: Duration;
    duration?: Duration;
    easing?: Easing;
    from?: number;
    property: "alpha";
    target: string;
    to?: number;
}

Hierarchy

  • BaseTween
    • ScalarTween

Properties

delay?: Duration

Default 0.

duration?: Duration

Default: fills the remaining phase time after delay.

easing?: Easing

Default "linear".

from?: number

Default: the property's current value when the tween starts.

property: "alpha"
target: string

Node id to animate.

to?: number

Default: the node's declared (base) value for the property.