想模仿动画箭头:
鼠标悬停时,描边覆盖圆形。我已经在Illustrator中创建了形状,定位很容易,只需对描边进行动画处理即可。
HTML(内联SVG):
<svg id="right_arrow" class="direction__right direction__item" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="80px" height="80px" viewBox="0 0 80 80" xml:space="preserve">
<polygon class="ring offset-colour" points="32.5,52 47.5,40 32.5,28"/>
<path class="arrow offset-colour" d="M40,1c21.5,0,39,17.5,39,39S61.5,79,40,79S1,61.5,1,40S18.5,1,40,1 M40,0C17.9,0,0,17.9,0,40s17.9,40,40,40s40-17.9,40-40S62.1,0,40,0L40,0z"/>
</svg>
路径已经是一个圆。我想要另一条路径覆盖在当前路径上,以模仿uve.info网站。整个动画由悬停完成。这是箭头在动画中间应该看起来的样子,但证明很麻烦。
最好的方法是如何调用描边效果?
谢谢大家。
Stroke-dasharray / offset
- Paulie_D