Sets an attribute to a discrete value for the duration of an animation.
<set> is the simplest SVG animation element. It sets a target attribute to a specified value when the animation is active. Unlike <animate>, it does not interpolate between values.
| Attribute | Support |
|---|---|
| attributeName | Attribute to replace during the active interval. |
| to | Replacement value. |
| href, xlink:href | Optional target; otherwise the parent element is targeted. |
| Shared timing | begin, dur, end, fill, repeatCount, repeatDur, restart, min, and max. |
The default fill="remove" restores the underlying value after the active interval; fill="freeze" keeps the replacement. See <animate> for shared timing behavior, including event and syncbase begin and end values.