Skip to main content

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

ParameterTypeDescription
elNode | Group | string | Element
xnumber
ynumber
animateOptions{ duration?: number; start?: Function; step?: Function; complete?: Function; }

Returns:

void