【发布时间】:2022-12-09 12:00:59
【问题描述】:
我有 svg 描边动画 https://codesandbox.io/s/magical-hill-r92ong
但它是从右下角开始的,我可以从中上角开始吗like on screenshot (red dot)?
我尝试将 stroke-dashoffset 设置为负值,这有助于设置起点,但笔划动画不会结束
【问题讨论】:
-
您需要重写路径的 d 属性,以便它从您想要的位置开始
标签: css animation svg stroke-dasharray