Magnetic divider/line, but end points not moving

i have worked with the magnetic effect and knows how it works with buttons, but i would like to try a new effect like they do at https://hello.cuberto.com/

as you can see their lines/divider has a more of a lasso effect, that i would like to learn how to do. i havde tried using google and youtube to find any tutorials for this, but can’t seem to find any.

any help would be much appreciated. :slight_smile: