If it is possible to build port-connection animation like this?

I’m using UI Toolkit to build Node-Based Graph Editor tools, I gonna to use this tool to build narrative in the game, but at runtime,I want the connection between each port be like this(recored from unreal engine), it is very useful to show the node’s state transition.

Here is the .gif to show what I want to achieve.

9482404--1333639--PortConnection-animation.gif