Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple animations on SVG element

If I have single SVG element and multiple animation elements related to it which animation will execute first and take effect over the SVG?

Example code :

<svg ...... >
    <animation id="1" .... />
    <animation id="2" .... />
    <animation id="3" .... />
</svg>

And is there any difference if the animations are from different type - animateTransform, animateColor, animate, animatePath ?

Thank you in advance

like image 788
Bankin Avatar asked May 24 '26 23:05

Bankin


1 Answers

All of them will activate according to their individual conditions. None of them will be "first", they all get processed in a single pass.

like image 151
Robert Longson Avatar answered May 27 '26 15:05

Robert Longson