3
다음 예제에서는 모든 애니메이션을 동시에 실행해야합니다. 그러나 작품은 마지막 작품입니다.svg animateTransform 동시에 여러 애니메이션 트리거
<g>
<animateTransform attributeName="transform" attributeType="XML"
type="rotate" values="2 100 100; -1 100 100; 1 100 100; -0.5 100 100 0.5 100 100" begin="indefinite" dur="0.35s" fill="freeze" />
<animateTransform attributeName="transform" attributeType="XML"
type="scale" values="1; 1.2; 1" begin="indefinite" dur="0.35s" fill="freeze" />
<animateTransform attributeName="transform" attributeType="XML"
type="translate" values="0 0; -100 -100; 0; 0" begin="indefinite" dur="0.35s" fill="freeze" />
<image x="0" y="0" width="200" height="200" xlink:href="<?php echo $cck->getValue('project_icon'); ?>" />
</g>
조치 JS에 의해 트리거되었습니다
var animations = $($this).find('animateTransform');
animations[0].beginElement();
animations[1].beginElement();
animations[2].beginElement();
는 모든 animateTransforms에 속성 애니메이션 = "합"을 추가합니다. 나는 대답으로 이것을 넣었지만, 힘이 부족한 일부 모니터는 그것을 지웠다. –