Back to Content

SVGAnimationElement: targetElement property

files/en-us/web/api/svganimationelement/targetelement/index.md

latest441 B
Original Source

{{APIRef("SVG")}}

The targetElement read-only property of the {{domxref("SVGAnimationElement")}} interface refers to the element which is being animated. If no target element is being animated (for example, because the {{SVGAttr("href")}} attribute specifies an unknown element), the value returned is null.

Value

An {{domxref("SVGElement")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}