Javascript 使用拉斐尔2旋转图像不起作用

Javascript 使用拉斐尔2旋转图像不起作用,javascript,animation,raphael,Javascript,Animation,Raphael,当我尝试为图像的旋转设置动画(使用拉斐尔2)时(我之前使用拉斐尔1成功地完成了此操作),什么都没有发生。 设置另一个属性(如高度)的动画确实有效 this.image.animate({rotation: this.angle + " " + this.centerY + " " + this.centerY}, this.animationTime, '<>'); this.image.animate({旋转:this.angle+“”+this.centerY+“”+this.

当我尝试为图像的旋转设置动画(使用拉斐尔2)时(我之前使用拉斐尔1成功地完成了此操作),什么都没有发生。 设置另一个属性(如高度)的动画确实有效

this.image.animate({rotation: this.angle + " " + this.centerY + " " + this.centerY}, this.animationTime, '<>');
this.image.animate({旋转:this.angle+“”+this.centerY+“”+this.centerY},this.animationTime“”);
你有什么想法吗? 谢谢。

正如我在element.animate上看到的那样,它没有旋转参数(至少在2.0版中是这样的;可能在早期版本中是这样的?)

你必须使用

this.image.animate({transform:"r"+this.angle + "," + this.centerY + "," + this.centerY}, this.animationTime);
我注意到旧方法在2.0中进行了更新

this.image.rotate(45);