Animation 有没有办法为SVG中的动画长度设置全局默认值
我想为SVG中的动画持续时间设置一个全局值,可能是通过CSS。但是,下面的代码未设置所需的持续时间Animation 有没有办法为SVG中的动画长度设置全局默认值,animation,svg,Animation,Svg,我想为SVG中的动画持续时间设置一个全局值,可能是通过CSS。但是,下面的代码未设置所需的持续时间 <style> .animate { dur: 5s } </style> <animateTransform class="animate" id="at1" attributeName="transform" type="translate" begin="showLine.begin+0s" fill="freeze"
<style>
.animate {
dur: 5s
}
</style>
<animateTransform class="animate" id="at1" attributeName="transform" type="translate" begin="showLine.begin+0s" fill="freeze" from="0,100" to="0,500"/>
.制作动画{
dur:5s
}
有没有办法为SVG中的动画长度设置全局默认值?谢谢。不,SMIL动画使用属性而不是CSS属性,因此您不能使用CSS设置它们