A transition is a selection-like interface for animating changes to the DOM. Instead of applying changes instantaneously, transitions smoothly interpolate the DOM from its current state to the desired target state over a given duration.
To apply a transition, select elements, call selection.transition and then make the desired changes.
d3.select("body") .transition() .style("background-color", "red");
Never Miss an Articles from us.