SVGAnimatedBoolean: animVal-Eigenschaft

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.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Die animVal-Eigenschaft des SVGAnimatedBoolean-Interfaces ist eine schreibgeschützte Eigenschaft, die den aktuellen animierten Wert des zugehörigen animierbaren boolean SVG-Attributs darstellt. Wenn das Attribut nicht animiert ist, ist animVal dasselbe wie SVGAnimatedBoolean.baseVal.

Einige boolean SVG-Attribute, wie zum Beispiel preserveAlpha, sind animierbar. In solchen Fällen ist die SVGAnimatedBoolean.animVal-Eigenschaft true, wenn der Attributwert zu true aufgelöst wird. Andernfalls ist der Wert false.

Wert

Ein boolean; der Wert des animierbaren boolean Attributs.

Spezifikationen

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGAnimatedBoolean__animVal

Browser-Kompatibilität

Siehe auch