ANIMATION › SVG
SINCE 1.0.0
SVG 属性动画 (Attributes)
直接通过属性名动画 SVG 特有属性,如
r
,
cx
,
cy
,
width
,
rx
等。
SVG Attributes code example
xjs
(
'#c1'
)
.
animate
({
r
:
[
20
,
50
]
,
cx
:
[
100
,
150
]
,
duration
:
1000
,
direction
:
'alternate'
,
loop
:
true
}
)
;
REPLAY