myqq2368282760 2019-03-08 22:57 采纳率: 0%
浏览 896

我svg里的圆点怎么不能卡在路径上沿path(路径)移动

我是这样写的:
var mypath = anime.path('#path32');
anime({
targets: '#circle0308',
autoplay: true,
translateX: mypath('x'),
translateY: mypath('y'),
//rotate: mypath('angle'),
duration: 6000,
direction:'alternate',// 'normal', 'reverse', 'alternate' 方向:正常、翻转、交替
loop: true,
easing: 'linear'
});
anime({
targets: '#path32',
autoplay: true,
strokeDashoffset: [anime.setDashoffset, 0],
opacity: 1,
duration: 6000,
loop: true,
direction: 'alternate',
easing: 'linear'
});
可是我的圆点没有卡在路径上运动:在这里插入图片描述
请兄弟姐妹们帮帮我,不胜感激。

  • 写回答

1条回答 默认 最新

  • myqq2368282760 2019-07-25 13:12
    关注

    已解决,是svg参数出了错

    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码