谷歌浏览器灯塔的动画效果出不来

来源:6-2 clip标签裁切图形

qq_晒太阳的猫_4

2017-12-27 17:07

<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0" to="360" dur="10s" repeatCount="indefinite"></animateTransform>

写回答 关注

1回答

  • qq_晒太阳的猫_4
    2017-12-28 11:52:18

    灯塔的原型里面加上动画

    <polygon points="0 0 -400 -15 -400 15" fill="rgba(255,0,0,0.5)">

    <animateTransform id="rotate" attributeType="XML" attributeName="transform" type="rotate"  from="0" to="360" dur="10s" repeatCount="indefinite">

    </polygon>

走进SVG

SVG是HTML5 中矢量图的标记语言,学习后掌握更多的干货

52525 学习 · 213 问题

查看课程

相似问题