<animate>
<animatecolor>
<animatemotion>
<animatetransform>
<discard>
<mpath>
<set>
<feBlend>
<feColorMatrix>
<feComponentTransfer>
<feComposite>
<feConvolveMatrix>
<feDiffuseLighting>
<feDisplacementMap>
<feDistantLight>
<feFlood>
<feFuncA>
<feFuncB>
<feFuncG>
<feFuncR>
<feGaussianBlur>
<feImage>
<feMerge>
<feMergeNode>
<feMorphology>
<feOffset>
<fePointLight>
<feSpecularLighting>
<feSpotLight>
<feTile>
<feTurbulence>
<filter>
<font>
<font-face>
<font-face-format>
<font-face-name>
<font-face-src>
<font-face-uri>
<foreignObject>
animateTransform
element animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing.
| 类别 | Animation element |
|---|---|
| 准许内容 |
Any number of the following elements, in any order:
Descriptive elements |
<svg width="120" height="120" viewBox="0 0 120 120"
xmlns
=
"
http://www.w3.org/2000/svg
"
>
<
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
>
Live sample
This element implements the
SVGAnimateTransformElement
接口。
| 规范 |
|---|
|
SVG Animations Level 2
(SVG Animations 2)
# AnimateTransformElement |
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者