Added animation of nodes and edges when slider is dragged (linear
interpolation)