【发布时间】:2019-03-03 13:33:45
【问题描述】:
我目前正在使用 svg 进行作业编程,但我似乎无法正确处理。所以我想要一个椭圆,让椭圆变得越来越小,而不是在 cx 或 cy 中,而是在 ry 中。我的问题是我怎么能做到这一点。因为当我尝试使用转换工具时,它不起作用。正如您在下面的 sn-p 中看到的,我添加了第三个值。当我这样做时,它停止工作,但我不知道如何使它工作。 this is an illustration to show what i want to achieve
编辑:我找到了让它工作的方法! (我已经发布了答案)
<ellipse id="experi2" cx="610" cy="330" rx="600" ry="250" style= "fill: #404040; stroke:black; stroke-width:10" filter="url(#blurryedge)" />
<animateTransform
xlink:href="#experi2"
attributeName="transform"
type="translate"
from="610 330 250" <!-- when i added the third value it stopped working -->
to=" 610 330 20"
begin="0s"
dur="2s"
Repeatcount="freeze"
/>
【问题讨论】:
标签: html animation svg transform ellipse