svg动画是否可以在不丢失累积信息的情况下暂停?
您可以不受限制地停止和重复动画,但如果重新启动不确定的动画,它将失去其累积值,并从初始值开始 也许我应该用一个例子来说明;以这个动画为例:svg动画是否可以在不丢失累积信息的情况下暂停?,svg,svg-animate,Svg,Svg Animate,您可以不受限制地停止和重复动画,但如果重新启动不确定的动画,它将失去其累积值,并从初始值开始 也许我应该用一个例子来说明;以这个动画为例: <animate id="main" attributeName="transform" attributeType="XML" begin="startbox.click" dur="1s" end="endbox.cli
<animate id="main"
attributeName="transform" attributeType="XML"
begin="startbox.click" dur="1s" end="endbox.click"
from="rotate(0)" to="rotate(360)"
additive="sum"
accumulate="sum"
fill="freeze"
repeatCount="indefinite"
/>
使用animate元素设置变换动画无效,必须使用animateTransform。看 您应该向Opera报告您的测试用例,如果它以该UA为动画
<animateTransform
attributeName="transform" attributeType="XML"
type="rotate"
begin="startbox.click" dur="1s" end="endbox.click"
from="0" to="360"
additive="sum"
accumulate="sum"
fill="freeze"
repeatCount="indefinite"
/>
但据我所知,使用SVG1.1不能以声明的方式执行。它内置于SVG中
SVGRoot.pauseAnimations();
我最初是用rect.x
测试它的,但这更容易看到。我将研究JS,谢谢。注意play函数是unpauseAnimations()。我花了一段时间才找到SVG DOM接口的.MDN链接: