I am trying to create an infinite "train" that moves one way inside the paper.path line. My Code currently uses loop and its not really an effect I am after.
Here is the fiddle: http://jsfiddle.net/y9XHw/
function updateLoop() {
var paper = Raphael(10, 50, 900, 1000);
var line = paper.path( "M300,95 L600,550" ).attr({'stroke':'#669900', 'stroke-width':5});
var line2 = paper.path( "M300,95 L600,550" ).attr({'stroke-dasharray': "- ", 'stroke':'#99FF99', 'stroke-width':2});
//alert(2);
line2.animate({
path: ("M304,99 L600,550")
}, 500);
}
setInterval(updateLoop,500);