SVGAnimatedBoolean:animVal 屬性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
SVGAnimatedBoolean 介面的 animVal 唯讀屬性表示相關可動畫布林 SVG 屬性的當前動畫值。如果屬性未被動畫化,animVal 與 SVGAnimatedBoolean.baseVal 相同。
某些布林 SVG 屬性(例如 preserveAlpha)是可動畫的。在這種情況下,當屬性值解析為 true 時,SVGAnimatedBoolean.animVal 的值為 true;否則,值為 false。
值
一個布林值;對應於可動畫布林屬性的值。
規範
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # __svg__SVGAnimatedBoolean__animVal> |
瀏覽器相容性
Loading…