Is there any other way to make the animation look like on the image below?
Add a bezier curve, select a sphere, shift select the curve, go to edit mode, select one control point and press Ctrl H (Hook to selected object). Repeat for the other control point and the second sphere.
With geometry property Bevel, you can set the diameter of the link.