SVGAnimatedString: animVal property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

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

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGAnimatedString__animVal

Browser compatibility

BCD tables only load in the browser