←back to thread

518 points cantdutchthis | 1 comments | | HN request time: 0.429s | source
Show context
pjc50 ◴[] No.44501400[source]
"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?
replies(4): >>44501544 #>>44501591 #>>44501688 #>>44502030 #
1. abirch ◴[] No.44501591[source]
Yes

https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...

  <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
  <rect width="10" height="10">
    <animate
      attributeName="rx"
      values="0;5;0"
      dur="10s"
      repeatCount="indefinite" />
  </rect>
  </svg>