分享

SVG animatetransform (Elements) 

 看见就非常 2020-05-27

animatetransform

animateTransform允许目标元件上的变换属性,由此允许动画控制平移,缩放,旋转和/或倾斜。

用法上下文

分类

动画元素

允许的内容

任意数量的以下元素,以任何顺序:描述性元素

<?xml version="1.0"?>
<svg width="120" height="120"  viewBox="0 0 120 120"
     xmlns="http://www./2000/svg" version="1.1"
     xmlns:xlink="http://www./1999/xlink" >

    <polygon points="60,30 90,90 30,90">
        <animateTransform attributeName="transform"
                          attributeType="XML"
                          type="rotate"
                          from="0 60 70"
                          to="360 60 70"
                          dur="10s"
                          repeatCount="indefinite"/>
    </polygon>
</svg>

示例

属性

全局属性

  • Conditional processing attributes »
  • Core attributes »
  • Animation event attributes »
  • Xlink attributes »
  • Animation attribute target attributes »
  • Animation timing attributes »
  • Animation value attributes »
  • Animation addition attributes »
  • externalResourcesRequired

具体属性

  • from
  • to
  • type

DOM接口

这个元素实现了SVGAnimateTransformElement接口。

产品规格

Specification

Status

Comment

SVG Animations Level 2The definition of '<animateTransform>' in that specification.

Editor's Draft

No change

Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<animateTransform>' in that specification.

Recommendation

Initial definition

浏览器兼容性

Feature

Chrome

Firefox (Gecko)

IE

Opera

Safari

Basic support

(Yes)

(Yes)

No support

(Yes)

?

Feature

Android

Firefox Mobile (Gecko)

IE Phone

Opera Mobile

Safari Mobile

Basic support

?

?

?

?

?

本文档系腾讯云云+社区成员共同维护,如有问题请联系 yunjia_community@tencent.com

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多