moving custom font doesn't work
问题 I'm trying to move a text via animation using raphael's print(), but it doesn't work: var paper = Raphael(document.getElementById("stage"), 640, 480); var text = paper.print(300, 200, "Test Text", paper.getFont("Yanone"), 50); text.animate({ y: 400 }, 1000); Anyone have ideas what I may be missing? 回答1: I think you should use the text function instead of the print function if you want to animate it later. I'm not sure why but it works ... Here is an example with both ways of doing it: var