我希望在更改元素的可见性后更改元素的比例,以便我可以变换缩放元素。简而言之,我想改变可见性的比例,如下所示:
<path fill="#F28E85" d="M31,94.6236572C31,47.644043,65.2392578,8.6680908,110.1236572,1.270813
C105.0795288,0.4395142,99.9032593,0,94.6236572,0C42.3644409,0,0,42.3644409,0,94.6236572
c0,52.2591553,42.3644409,94.6236572,94.6236572,94.6236572c5.2796021,0,10.4558716-0.4395142,15.5-1.270813
C65.2392578,180.5792236,31,141.6032104,31,94.6236572z" visibility="hidden" transform="scale(0.9)">
<set attributeName="visibility" from="hidden" to="visible" begin="2s" />
<set attributeName="transform" type="scale" from="0.9" to="0.5" begin="4s" />
</path>
答案 0 :(得分:0)
您无法使用<set>
设置转换,您必须使用<animateTransform>
代替。
<animateTransform attributeName="transform" type="scale" from="0.9" to="0.5" begin="4s" dur="0.01s" fill="freeze" />