SVGAnimatedPreserveAspectRatio
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
TheSVGAnimatedPreserveAspectRatio interface represents attributes of typeSVGPreserveAspectRatio which can be animated.
In this article
Instance properties
baseValRead onlyAn
SVGPreserveAspectRatiothat represents the base value of the given attribute before applying any animations.animValRead onlyAn
SVGPreserveAspectRatiothat represents the current animated value of the given attribute. If the given attribute is not currently being animated, then theSVGPreserveAspectRatiowill have the same contents asbaseVal. The object referenced byanimValis always distinct from the one referenced bybaseVal, even when the attribute is not animated.
Instance methods
TheSVGAnimatedPreserveAspectRatio interface do not provide any specific methods.
Specifications
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # InterfaceSVGAnimatedPreserveAspectRatio> |