Comment by pjc50
6 days ago
"SVG is inherently animated" is new to me, and now I'm going to spend my time on the bus thinking what might be done with that. Does it support infinite loop?
6 days ago
"SVG is inherently animated" is new to me, and now I'm going to spend my time on the bus thinking what might be done with that. Does it support infinite loop?
> Does it support infinite loop?
Yes, by setting the repeatCount or repeatDur attribute of the <animate> tag to "indefinite". Notably, since <animation> tags effect individual attributes and not the image as a whole, different parts of the image can be on different animation cycles and don't have to add up to some small common multiple.
That smells like Turing complete
Tomorrow on HN: GPT-2 in pure SVG
Yes
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...
SVG embeds Ecmascript (or Javascript as the rest of the world knows it): https://www.w3.org/TR/SVG11/script.html
So not only do you get all the animation support from the attributes, you can fill in anything you need from scripting.
> Does it support infinite loop?
Yes it does.
https://www.w3schools.com/graphics/svg_animation.asp - Has some examples, you may need to refresh to see some of them (ones that don't repeat) in action as you scroll down the page.