I am working on an HTML project with jQuery and I want to create a feature that allows users to select a panel from one column and have it move to another column. While I know how to make the selection functionality work, I am struggling with drawing connecting lines between the panels. The idea is that when a user selects the first panel, a horizontal line will connect to the middle of the columns with a circle. Then, when the user selects panel 2, a vertical line in the middle will move up or down (depending on the position of panel 2 relative to panel 1) and draw a second horizontal line to connect panel 2.
For reference, you can check out an example of the desired end result here