restart

  • Revision slug: SVG/Attribute/restart
  • Revision title: restart
  • Revision id: 91510
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment page created, 134 words added

Revision Content

« SVG Attribute reference home

This attribute indicates when animation can or can not restart.

Usage context

Categories Animation timing attribute
Value always | whenNotActive | never
Animatable No
Normative document SVG 1.1 (2nd Edition)
always
The animation can be restarted at any time. This is the default value.
whenNotActive
The animation can only be restarted when it is not active (i.e. after the active end). Attempts to restart the animation during its active duration are ignored.
never
The element cannot be restarted for the remainder of the current simple duration of the parent time container. (In the case of SVG, since the parent time container is the SVG document fragment, then the animation cannot be restarted for the remainder of the document duration.)

Example

Elements

The following elements can use the restart attribute

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>This attribute indicates when animation can or can not restart.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table"> <tbody> <tr> <th scope="row">Categories</th> <td>Animation timing attribute</td> </tr> <tr> <th scope="row">Value</th> <td><strong title="This is the default value">always</strong> | whenNotActive | never</td> </tr> <tr> <th scope="row">Animatable</th> <td>No</td> </tr> <tr> <th scope="row">Normative document</th> <td><a class="external" href="http://www.w3.org/TR/SVG/animate.html#RestartAttribute" title="http://www.w3.org/TR/SVG/animate.html#RestartAttribute">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<dl> <dt>always</dt> <dd>The animation can be restarted at any time. This is the default value.</dd> <dt>whenNotActive</dt> <dd>The animation can only be restarted when it is not active (i.e. after the active end). Attempts to restart the animation during its active duration are ignored.</dd> <dt>never</dt> <dd>The element cannot be restarted for the remainder of the current simple duration of the parent time container. (In the case of SVG, since the parent time container is the SVG document fragment, then the animation cannot be restarted for the remainder of the document duration.)</dd>
</dl>
<h2 id="Example">Example</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>restart</code> attribute</p>
<ul> <li><a href="/en/SVG/Element#Animation" title="en/SVG/Element#Animation">Animation elements</a> »</li>
</ul>
Revert to this revision