Fil
A (not so) simple d3-inertia example.
The offset is t * (1-t) * velocity, which allows the drawing to come back to its original place after n seconds.
t * (1-t) * velocity
https://unpkg.com/d3
https://unpkg.com/d3-inertia