ReferenceScripting APIMotionEffectanimate
MotionEffect.animate
methodMoves one of its number or colour settings over seconds.
| Name | animate |
|---|---|
| Kind | method of MotionEffect |
| Called as | effect.animate(…) |
| As a node | Set Effect Setting (logic graph) |
| Since | 0.4 |
Syntax
animate( key: string, value: string | number, seconds: number, options?: MotionAnimateOptions): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
key | string | Its setting's key |
value | string | number | Where it ends up |
seconds | number | How long the move takes |
options | MotionAnimateOptions | Optional. Its easing, delay and loop |
Returns
Promise<boolean>: a promise of true when it gets there, false when it's stopped.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.