ReferenceScripting APIVideoComponentanimate
VideoComponent.animate
methodMoves one of its layer's settings.
| Name | animate |
|---|---|
| Kind | method of VideoComponent |
| Called as | videoComponent.animate(…) |
| Since | 0.3 |
Syntax
animate( key: string, value: string | number, seconds: number, options?: MotionAnimateOptions): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
key | string | The setting |
value | string | number | Where it ends up |
seconds | number | How long |
options | MotionAnimateOptions | Optional. Its easing, delay and loop |
Returns
Promise<boolean>: a promise of true when it gets there.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.