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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access