VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-repeatcount-attribute/

⇱ SVG repeatCount Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG repeatCount Attribute

Last Updated : 23 Jul, 2025

The repeatCount attribute specifies the time duration of an animation. The elements that are using this attribute includes <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set>

Syntax:

repeatCount = number || indefinite

Attribute Values: The repeatCount attribute accepts the values mentioned above and described below.

  • number: It indicates the number of iterations. The values starts greater than 0 and beyond.
  • indefinite: It specifies that the animation will repeat indefinitely.

Example 1: The below examples illustrates the use of the repeatCount attribute.

Output:


Example 2:

Output:


Comment