SVG动画钻石路径“ D&quot”
我想为这条破折号钻石制作动画,但由于它路径D
,但我不知道该如何使该工作...我基本上搜索了一些类似的东西。 https://codepen.io/myxotod/pen/myxotod/pen/pen/pen/xxrgdr? >我在svg 路径d
的文章中找到的,但我不知道它是如何工作的……我的问题也很简单。
<svg width="119" height="30" viewBox="0 0 119 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M119 0V25H10.7735L6 29.7735L0.226501 24L6 18.2265L10.7735 23H117V0H119Z" fill="black"/>
</svg>
当它徘徊时,它将从创建钻石到行的边缘
...然后将其动画起来,除非它会撤离。就是这样。
I wanted to animated this dash line diamond but since it path d
and I don't know how to make that work... I basically search some stuff like this one. https://codepen.io/MyXoToD/pen/xxrGdR?editors=1100 that I found in article in svg path d
but I don't know how it works...Also my problem is just simple.
<svg width="119" height="30" viewBox="0 0 119 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M119 0V25H10.7735L6 29.7735L0.226501 24L6 18.2265L10.7735 23H117V0H119Z" fill="black"/>
</svg>
When it hovers it will animated from creating the diamond to the edge of line
... and then it will stays there unless it unhover. Thats it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是你的意思吗?
现有的路径是结合钻石的填充形状。我不得不将钻石分为自己的道路。然后将其余的路径更改为线路。
然后,当您悬停时,我们将动画应用于钻石。它沿线移动到右上角。
Is this what you mean?
The existing path is a filled shape that incorporates the diamond. I had to separate the diamond out into its own path. Then change the rest of the path to a line.
Then when you hover, we apply an animation to the diamond. It gets moved along the line and up to the top right corner.