Summary
In this chapter, you learned the basics of animations in D3.js. You also learned that animations are timer triggered changes of properties. D3.js implements high performance timers and uses the native requestAnimationFrame() method if available.
Interpolators are parametric functions that return an interpolated value for a parameter between 0 and 1. D3.js integrates a variety of interpolation functions, but we can easily implement a new one for our data types. Transitions are much more comfortable and elegant than creating custom timers and interpolators. We also saw how to chain and stagger transitions and put them together piecewise to create animations.
After playing around with some examples of transitions, we discovered that there exist ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access