Back to Content

SVGAnimatedLengthList: animVal property

files/en-us/web/api/svganimatedlengthlist/animval/index.md

latest1.2 KB
Original Source

{{APIRef("SVG")}}

The animVal read-only property of the {{domxref("SVGAnimatedLengthList")}} interface represents the animated value of an attribute that accepts a list of <length>, <percentage>, or <number> values.

Some SVG attributes, like the x, y, dx, and dy attributes of the <tspan> and <text> elements, accept a list of length, percentages, or numbers as a value. This property provides access to the current animated state of the attribute as a live {{domxref("SVGLengthList")}} object.

Value

An {{domxref("SVGLengthList")}} object representing the animated value of the attribute.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also