The <set> Element

The <set> element provides a straightforward way of setting the value of an attribute or property to a particular value for a specified period. As with the other SMIL Animation and SVG animation elements, the <set> element sets the presentation attribute value, leaving the original value of the target attribute unchanged in the DOM.

You can use the <set> element to set the value of an attribute for which interpolated values make no sense; for example, the visibility attribute can have only the values hidden or visible. The additive or accumula-tive attributes are not permitted on a <set> element. Also, the repeatCount attribute does not cause the animation to be repeated, but simply extends the duration for which the animated ...

Get Designing SVG Web Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.