I\'ve tried to make chained transitions in d3.js. For this I define a set of transitions in an array and (try) make a function to call recursively them using .each(\"e
.each(\"e
You're almost there!
Instead of
return animations[index]().each("end", animate(index))
you need
return animations[index]().each("end", function() { animate(index) })
See updated jsFiddle