0
我在jsfiddl上看到此應用程序jsfiddle with raphael 1.5.2如何將應用程序從Raphael 1.5.2轉換爲Raphael 2.0?
當我試圖用raphael 2.0運行它時,出現了一些錯誤和一些特效不運行!
我該如何更改代碼以使其與raphael 2.0一起運行?
謝謝
我在jsfiddl上看到此應用程序jsfiddle with raphael 1.5.2如何將應用程序從Raphael 1.5.2轉換爲Raphael 2.0?
當我試圖用raphael 2.0運行它時,出現了一些錯誤和一些特效不運行!
我該如何更改代碼以使其與raphael 2.0一起運行?
謝謝
這個問題似乎是與規模上動畫
The Raphael reference顯示,以縮放對象一個可以使用這樣的事情:
element.animate({transform: 's1.05'}, 200);
因此,通過在小提琴結束時,在js部分,在for循環中改變
this.animate({scale: '1.2'}, 200);
與
this.animate({transform: 's1.2'}, 200);
和
this.animate({scale: '1.05'}, 200);
與
this.animate({transform: 's1.05'}, 200);
的東西應該工作。
謝謝你的回答,但並不真正完全解決這個問題:「el is undefined」=> el.mouseover(function(){ – trouble