Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
"<set>"

Sets an attribute to a discrete value for the duration of an animation.

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.

Example usage:

<rect width="100" height="100" fill="red">
<set attributeName="fill" to="blue" begin="2s" dur="3s" />
</rect>