SVGAnimatedNumber

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.

SVG animated number interface

The SVGAnimatedNumber interface is used for attributes of basic type <Number> which can be animated.

Interface overview

Also implement None
Methods None
Properties
  • float baseVal
  • readonly float animVal
Normative document SVG 1.1 (2nd Edition)

Instance properties

Name Type Description
SVGAnimatedNumber.baseVal float The base value of the given attribute before applying any animations.
SVGAnimatedNumber.animVal float 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, contains the same value as baseVal.

Instance methods

The SVGAnimatedNumber interface do not provide any specific methods.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGAnimatedNumber

Browser compatibility

BCD tables only load in the browser