SVGAnimatedBoolean: 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.

The animVal read-only property of the SVGAnimatedBoolean interface represents the current animated value of the associated animatable boolean SVG attribute. If the attribute is not animated, animVal is the same as SVGAnimatedBoolean.baseVal.

Some boolean SVG attributes, such as preserveAlpha, are animatable. In such cases, SVGAnimatedBoolean.animVal property is true when the attribute value resolves to true. Otherwise, the value is false.

Value

A boolean; the value of the animatable boolean attribute.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGAnimatedBoolean__animVal

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
animVal

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also