targetElement

The SVGAnimationElement.targetElement property refers to the element which is being animated. If no target element is being animated (for example, because the href attribute specifies an unknown element), the value returned is null.

Syntax

var targetElement = someElement.targetElement;

Specifications

Specification Status Comment
SVG Animations Level 2
The definition of 'SVGAnimationElement.targetElement' in that specification.
Editor's Draft Added null as return value in case that no target element is being animated.
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGAnimationElement.targetElement' in that specification.
Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge No support NoFirefox Full support YesIE No support NoOpera Full support YesSafari Full support YesWebView Android ? Chrome Android ? Edge Mobile No support NoFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz
Last updated by: fscholz,