W3cubDocs

/Web APIs

SVGAnimatedString: animVal property

AnimVal attribute or animVal property contains the same value as the SVGAnimatedString.baseVal property. If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, then it contains the same value as baseVal

Note: The animVal property is a read only property.

Syntax

js

const currentValue = object.animVal

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
animVal 1 12 1.5 9 ≤12.1 ≤4 3 18 4 ≤12.1 1 1.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/animVal