Is there any way to animate jsplumb connecting lines as they are being drawn? I want to have an animation, instead of just a line appearing.
I call jsPlumb.connect
to draw the line upon clicking a div, like this
$("#manchester").on('click', function() {
jsPlumb.connect({source: "manchester", target: "paris"});
});
First we need to bind an event whenever a connection has been made in order to animate the newly created connection:
Now in the animation function just update the position of connection overlay to get the animation. Before doing make sure that you add overlay to your connections:
Now the animateConn function:
To customise the overlay refer the API DOC.