【发布时间】:2019-12-20 08:41:01
【问题描述】:
我从这个有动画脚印的pen 获得灵感。我的问题是如何将它与给定的轨迹结合起来,以便脚印只会跟随路径?我的路径是这样的:
<svg id="svg" width="800" height="800">
<path id="path" d="M130 20 L230 80 L200 100 L170 200"/>
<image id="footprint" xlink:href="http://icons.veryicon.com/png/System/Icons8%20Metro%20Style/Tracks%20Footprints%20Left%20shoe.png" x="0" y="0" height="50px" width="50px"/>
</svg>
非常感谢您的帮助!
【问题讨论】:
-
也许这对你有帮助。 youtube.com/watch?v=Tae96ze3xwY 因为它们在路径上的滚动上为文本设置动画。
-
我很想将这样的脚步动作保持在笔中。我知道我可以使用 animateMotion 来移动足迹,但运动不应该是连续的
标签: javascript css animation svg