Motion
Get Motion

ReferenceScripting APIFollowComponentanimate

FollowComponent.animate

method

Moves one of its layer's settings.

Nameanimate
Kindmethod of FollowComponent
Called asfollowComponent.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