s让我们假设我有一个昆虫的 SVG。 除非无法以这种方式插入
现在, insect. svg 有两种动画:一种是步行动画,另一种是飞行动画。
我想单独开始/停止这些动画, 或者从 HTML s JavaScript (或者从 HTML JavaScript 中称为嵌入的 SVG JS 函数“行走”或“飞行 ” 。
所以,最后,如果在游戏中我想让我的昆虫飞翔, 我可以告诉它和联署材料一起飞翔, 并告诉它当它应该停止飞翔的时候停止飞翔。和走路一样。
Is there any way to do this? I ve been Googling for the past hour and made no real findings. I don t care about IE support if that is an issue.
感谢您抽出时间!