【发布时间】:2018-02-11 14:36:03
【问题描述】:
我想知道动画路径过渡是否可以返回最后绘制的位置? ..通过 attrTween 我们可以得到补间范围 [0-1] 但曲线 pos ??
例如:
path
.attr("stroke-dasharray", t1 + " " + t1)
.attr("stroke-dashoffset", t1)
.transition(d3.transition()
.duration(lap)
.ease(d3.easeLinear)
.attrTween( "e", function(d) {
return function( t ) {}})
.attr("stroke-dashoffset",0)
谢谢
【问题讨论】:
标签: javascript animation d3.js svg