+ 1
How to put animation in loop?
please provide me a code to put animation in loop
6 Answers
+ 6
Hey @visph how to make a gradient stop-color animation??
I tried this :
<stop stop-color="red" âŠâŠ>
<animate attributeName="stop-color" âŠâŠ>
</stop>
âŠâŠbut it didn't work⊠~_~
+ 5
(@visph grammatical mistake : "indefinte -> indefinite")
+ 3
For css animation, use 'infinite' special value for the 'animation-iteration-count' property value:
animation-iteration-count:infinite;
+ 3
For svg animation:
<shape>
<animate repeatCount="indefinite" ... >
</shape>
For chained animations:
<shape>
<animate id="anim1" begin="0s; anim2.end" dur=... >
<animate id="anim1" begin="anim1.end" dur=... >
</shape>
+ 2
@VH:
You made at least one mistake: the attribute name is 'stop-color' and not 'color-stop'...
Next, I don't know your other attributes of <animate> tag: for animate color, use 'values' attribut... ( don't know if 'from' and 'to' are effective: I search another solution before finding I had forgot a letter in attribute name, so I wasn't succesfull ^^ ).
Results of my tests here: https://code.sololearn.com/Wvac74Zd8Ry3/#html
+ 1
( @VH corrected, thanks ^^ )