0
我想知道是否可以使用raphaeljs正確動畫print
?使用raphael js動畫「打印」元素
因爲這樣的事情:
var text = paper.print(10,10,"Text here",Font,20).animate({transform:"t100,100"},500);
完全不工作...
感謝
我想知道是否可以使用raphaeljs正確動畫print
?使用raphael js動畫「打印」元素
因爲這樣的事情:
var text = paper.print(10,10,"Text here",Font,20).animate({transform:"t100,100"},500);
完全不工作...
感謝
拉斐爾的文件說.print()
返回一組,所以你需要把它當作這樣...
var text = paper.print(10,10,"Text here",Font,20)
text.forEach(function(){
this.animate({transform:"t100,100"},500);
})
我必須說我試過你的代碼和text
返回一個空數組,但你可能會有更好的運氣。