This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The animVal read-only property of the SVGAnimatedAngle interface represents the current animated value of the associated <angle> on an SVG element. If the attribute is not currently being animated, animVal will be the same as the baseVal.
This property reflects the animated state of the angle of the animating orient attribute of the SVG <marker> element, providing access to the value of the angle during animations.
An SVGAngle object representing the animated value of the <angle> content type.
animVal will reflect the current animation state.animVal will be identical to SVGAnimatedAngle.baseVal.const marker = document.querySelector("[orient]");
// Set an initial angle for the orient attribute
marker.setAttribute("orient", "45");
// Access the animated value of the angle
const animAngle = marker.orientAngle.animVal; // an SVGAngle object
console.log(animAngle.value); // Output: 45 (current animated value of the angle)
console.log(animAngle.unitType); // Output: 2 (constant for SVG_ANGLETYPE_DEG)
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
animVal |
1 | 12 | 1.5 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 3 | 1 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/animVal