How do I add a transition delay between multiple individual transitioning polygons in D3?

前端 未结 1 1851
轮回少年
轮回少年 2021-01-14 12:50

The original Code can be found at: http://bl.ocks.org/Guerino1/3a51eeb95d3a8345bc27370e8c9d5b77

I have numerous polygons that are transitioning onto an svg canvas (

1条回答
  •  有刺的猬
    2021-01-14 12:59

    try this..

     .transition() // <------- TRANSITION STARTS HERE --------
     .delay(function(d,i){ return 100*i; }) 
     .duration(3000)
     .attr("points", calculateChevron);
    

    0 讨论(0)
提交回复
热议问题