I am trying to animate a circle while loading SVG. He must:
- Initially load into set, small size (radius 1)
- Start after a specified number of seconds
- Increase the size to the specified size (radius 17)
- Stay on this radius forever
That's what I'm doing:
<svg width="36px" height="36px"> <circle r="1" cy="18" cx="18"> <animate attributeName="r" from="1" to="17" dur="1s" begin="1s"></animate> </circle> </svg>
But if you look at the result (and another option included in the link), you will see that it does not work in any of them:
http://codepen.io/sheepysheep60/pen/Hjfdo
Can someone shed some light on how to play the animation to the end, and then pause the animation, or is there some kind of setting that I am missing?
Djave source share