1

I have seen people drawing the animated path like this, but if I have an unknown number of points stored in an array, how could I use this callback progressively?

    window.onload = function() {
        var c= Raphael("canvas", 200, 200);
        var p = c.path("M140 100");
        var r = c.path("M190 60");


   p.animate({path:"M140 100 L190 60"}, 2000, function() {
            r.animate({path:"M190 60 L 210 90"}, 2000);
        });
    };
Scott Mermelstein
  • 15,174
  • 4
  • 48
  • 76
Jolin
  • 1,515
  • 4
  • 21
  • 24

0 Answers0