Motion
Get Motion

ReferenceScripting APITextComponentanimate

TextComponent.animate

method

Moves one of its layer's settings.

Nameanimate
Kindmethod of TextComponent
Called astextComponent.animate(…)
Since0.3

Syntax

animate(    key: string,    value: string | number,    seconds: number,    options?: MotionAnimateOptions): Promise<boolean>

Parameters

NameTypeDescription
keystringThe setting
valuestring | numberWhere it ends up
secondsnumberHow long
optionsMotionAnimateOptionsOptional. Its easing, delay and loop

Returns

Promise<boolean>: a promise of true when it gets there.

See also

MotionAnimateOptions