Skip to content
  1. Examples
  2. Animations

Dataset switch

This example shows how to smoothly transition between datasets that share common nodes. Nodes present in both the current and the next dataset animate to their new positions and colors using NodeList.setAttributes, while nodes unique to the departing dataset fade out and nodes unique to the arriving dataset fade in — all driven by opacity animation.