Multiple moving circle nodes on one link

Hello,

In https://gojs.net/latest/intro/animation.html, for “CustomAnimationEffects” example (and similarly in “pathAnimation” example), at each cycle, only one circle node is moving on the link between two nodes from source node to destination node.
How can I have more than one moving circle nodes on one link at each cycle?
I mean before the first moving circle reaches the end of the link, another circle node starts to move from the same source node on a similar link. So we can have multiple moving circle nodes on one link.

You have at least two strategies you could use.

  1. Just have multiple labels. https://gojs.net/latest/intro/linkLabels.html
  2. Use separate Parts and position them yourself rather than setting/binding the segmentFraction of a label. https://gojs.net/latest/samples/pathAnimation.html

The choice depends on how you want to manage those moving circles.