I've made a simple bezier curve in d3. I would like to animate the curve from: starting point to end point. I would like the animation to take 1.25s?
JSFiddle
html
<div id="myelement">
</div>
js:
var svg = d3.select('#myelement').append('svg'),
curve = svg.append('path')
.attr('d', 'M0,200 C400,200 400,200 400,0')
.attr('stroke', '#fff')
.attr('fill-opacity', 0);
curve.transition()
.attr('d', 'M0,200 C400,200 400,200 400,0')