svg click

<svg width="640" height="480" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="150" y="50" width="100" height="50">   
   <animate  attributeName="opacity"
from="0" to="1" dur="3s"  begin="click"
restart="always" repeatCount="3"></animate>
</rect> 
  


</svg>
</body>
</html>
animate   永远适用于 父级标签 (包括svg标签)
posted @ 2023-01-02 21:04  newmiracle宇宙  阅读(44)  评论(0编辑  收藏  举报