Somehow this doesn\'t work...
var paper = Raphael(\"test\", 500, 500); var testpath = paper.path(\'M100 100L190 190\'); var a = paper.rect(0,0,10,10); a.at
With the latest version of Raphael, you can do this:
var _transformedPath = Raphael.transformPath('M100 100L190 190', 'T400,0'); testpath.animate({path: _transformedPath}, 1000);
This saves you from the trouble of having to clone a temp object.
clone