---
title: SVGAnimationElement.targetElement
slug: Web/API/SVGAnimationElement/targetElement
tags:
  - API
  - DOM
  - NeedsExample
  - Property
  - Reference
  - SVG
  - SVG DOM
browser-compat: api.SVGAnimationElement.targetElement
---
{{APIRef("SVG")}}

The **`SVGAnimationElement.targetElement`** property 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`.

## Syntax

```js
var targetElement = someElement.targetElement;
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
