2011-10-28 14 views
0

Raphael 1で正常に動作した画像(Raphael 2)の回転をアニメーションしようとすると、何も起こりません。 高さなどの別のプロパティをアニメーション化すると機能しません。Raphael 2で画像を回転させても動かない

this.image.animate({rotation: this.angle + " " + this.centerY + " " + this.centerY}, this.animationTime, '<>'); 

アイデアはありますか?おかげさまで

答えて

2

私が参照しているように、http://raphaeljs.com/reference.html element.animateにはローテーションパラメータはありません(少なくともバージョン2.0では、以前のバージョンではおそらくそれがありましたか?)。

あなたは

this.image.animate({transform:"r"+this.angle + "," + this.centerY + "," + this.centerY}, this.animationTime); 
0
this.image.rotate(45); 

を使用する必要が私は古い方法は2.0に更新されていることに気づきました。

関連する問題