Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface SVGAnimatedRect

The SVGAnimatedRect interface represents an SVGRect attribute that can be animated.

MDN Reference

interface SVGAnimatedRect {
    animVal: DOMRectReadOnly;
    baseVal: DOMRect;
}
Index

The animVal read-only property of the SVGAnimatedRect interface represents the current animated value of the viewBox attribute of an SVG element as a read-only DOMRectReadOnly object. It provides access to the rectangle's dynamic state, including the x, y, width, and height values during the animation.

MDN Reference

baseVal: DOMRect

The baseVal read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.

MDN Reference

Was this helpful?