Use panning and zoomming for animation close-ups:
canvas.node(1).add({ pos: [-50, 0], fixed: true })
canvas.node(2).add({ pos: [50, 0], fixed: true })
canvas.edge([1, 2]).add()
canvas.pause(0.5)
canvas.duration(1).zoom(3).pan([-50, 0]).pause(1)
canvas.node(1).color('purple').pause(0.5)
canvas.duration(1).edge([1, 2]).traverse('purple')
canvas.duration(1).pan([50, 0]).pause(1)
canvas.node(2).color('purple').pause(0.5)
canvas.duration(1).zoom(1).pan([0, 0])