0

How to make a continuous animation with citoscape.js to simulate a small random motion on all nodes. Something that look as if they had a small gravity. I try to make nodes move around a starting point only slightly.

Martin
  • 1,282
  • 1
  • 15
  • 43

1 Answers1

1

Options:

(1) Use ele.animate() on each node, specifying a slightly modified position for each node.

(2) Apply one of the physics/forcedirected layouts with a very short duration.

maxkfranz
  • 11,896
  • 1
  • 27
  • 36