This example demonstrates mirroring an easing function such that the transition returns to its starting point upon completion. The mirror
function takes an easing function as input (or the name of an easing function, such as “cubic”) and returns a mirrored easing function; the mirrored function reaches the transition destination at t = 0.5, and then returns to the transition origin at t = 1.0.
forked from mbostock's block: Mirrored Easing
https://d3js.org/d3.v3.min.js