Home > @jsplumbtoolkit/browser-ui-anim > SurfaceAnimator > animateToPosition
SurfaceAnimator.animateToPosition() method
Animate the given vertex to the given [x,y] location.
Signature:
animateToPosition(el: Node | Group | string | Element, x: number, y: number, animateOptions?: {
duration?: number;
start?: Function;
step?: Function;
complete?: Function;
}): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| el | Node | Group | string | Element | |
| x | number | |
| y | number | |
| animateOptions | { duration?: number; start?: Function; step?: Function; complete?: Function; } |
Returns:
void