I know how to do a normal fade in transition using the opacity attribute, but how would I go about making the transition start from one end of the element and gradually complete itself horizontally?
Something like this:
I am trying to do this for some text:
text = svg.selectAll(".myText")
.data(myData)
.enter()
.append("text")
.attr("class", "myText")
.attr("text-anchor", "start")
.attr("fill-opacity", 0)
.text(function (d)
{
return d.message
});
text.transition()
.delay(500)
.duration(1000)
.attr("fill-opacity", 1)