怎樣沿橢圓移動(dòng)
怎樣實(shí)現(xiàn)一個(gè)元素演一個(gè)ellipse標(biāo)簽的橢圓移動(dòng),animatemotion對(duì)于ellipse標(biāo)簽的路徑?jīng)]有反應(yīng)啊
怎樣實(shí)現(xiàn)一個(gè)元素演一個(gè)ellipse標(biāo)簽的橢圓移動(dòng),animatemotion對(duì)于ellipse標(biāo)簽的路徑?jīng)]有反應(yīng)啊
2017-03-26
舉報(bào)
2018-02-27
用path畫一個(gè)橢圓
<svg viewBox="-400 -400 800 800" width="400" height="400">
<circle cx="0" cy="0" r="8" fill="red">
<animateMotion
dur="5s"
repeatCount="indefinite"
>
<mpath xlink:href="#ell"></mpath>
</animateMotion>
</circle>
<path id="ell" d="M200 0 A200 100 0 0 1 -200 0 A200 100 0 0 1 200 0 " fill="none" stroke="gray"></path>
</svg>