adds transitions for links and nodes when moving between active and inactive states