I am just getting introduced to GSAP and I basically have it set up in angular was able to get a circle svg moving. Yeah me. I am looking into this animation library because I have a need to create a node system for my app. Between the nodes I will need to create an animated line that will start from the node I click on and terminate at a different node clicked as an endpoint. You've seen the flow chart systems I am sure, so something similar to that. But I will also need to disconnect the line when it is dragged off of a node. Drawing the animated line is I need guidance on.
Since I am brand new to this I have no idea where to start, but after watching a conference video online where GSAP was talked about I believe it might be what I am looking for and would allow me some other options as my interactive node diagram grows.
I am not worried about the coordinate system for mouse clicks. I can handle that. But I need to know how to draw the animation and where to start.
The closest example I can find to what I am wanting to accomplish is referenced in this conference video from a few years ago.
refer to time 1:05 in the intro.
https://www.youtube.com/watch?v=30li6w62eCo
There is a tree visualization in that video as an example. I am not looking for anything that complicated, but I would need the user to interactively draw the lines from a node to another node (or element) in a tree to connect it and disconnect it. I feel that if this could be created as an example, that it was completely possible. I just need a starting point.
Thank you and I am excited to get started.