With a simple HTML/CSS configuration, you have an arrow fully controlled using CSS. Not only is the position dynamic, but the shape adjusts according to the distance between the circles. And if they touch each other, the link disappears. Collision detection using pure CSS!
Connecting Circles With Anchor Positioning describes how to connect two moving circles with CSS.
See also: CSS