How is set animation done in Raphael?

前端 未结 2 2069
面向向阳花
面向向阳花 2021-01-06 17:57

I\'m trying to accomplish some animation with sets in Raphael, but even though an opacity animation worked, I cannot succeed in moving a set (or even a circle) around the ca

2条回答
  •  星月不相逢
    2021-01-06 18:25

    To move a set in Raphael, use:

    // move to (100,100) over 1 second
    
    theSetNameGoesHere.animate({transform: "t100,100"}, 1000);
    

提交回复
热议问题