block by sxywu 3a81930c054bb8ee39bf

How D3 Transitions Work, Pt. 2: d3.interpolate with multiple elements

Full Screen

Input a set of comma-delimited numbers, and press play to animate.

My quest to understand how transitions work under the hood, part 2: animate multiple elements with different ending x-positions using d3.interpolate and window.requestAnimationFrame.

Part 1 here: How D3 Transitions Work, Pt. 1: d3.interpolate

index.html