首页 > 其他 > 详细

svg动画

时间:2020-03-18 17:05:53      阅读:67      评论:0      收藏:0      [点我收藏+]

两个颜色渐变来回切换

<!DOCTYPE html>
<html>
<body>

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">

    <ellipse id="orange-circle-6" cx="200" cy="70" rx="85" ry="55" fill="red" />
    
    <animate
       xlink:href="#orange-circle-6"
       attributeName="fill"
       from="red"
       to="blue"
       dur="3s"
       begin="0s; changeColor2.end"
       fill="freeze"
       id="changeColor"/> 
    <animate
       xlink:href="#orange-circle-6"
       attributeName="fill"
       from="blue"
       to="red"
       dur="3s"
       begin="changeColor.end"
       fill="freeze"
       id="changeColor2"/>
</svg>

</body>
</html>

 

svg动画

原文:https://www.cnblogs.com/LcxSummer/p/12518165.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!