Miscellaneous / Animation
Animation
jsPlumb offers a simple animate
function, inserts a callback for jsPlumb to repaint whatever it needs to at each step. You could of course do this yourself; it's a convenience method really.
The method signature is:
The arguments are as follows:
- el - element id, or element object from the library you're using.
- properties - properties for the animation, currently only
left
andtop
are supported. - options - options for the animation, such as callbacks etc.