<mpath>
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2018.
* Some parts of this feature may have varying levels of support.
The <mpath> SVG sub-element for the <animateMotion> element provides the ability to reference an external <path> element as the definition of a motion path.
Usage context
| Categories | Animation element |
|---|---|
| Permitted content | Any number of the following elements, in any order: Descriptive elements |
Attributes
xlink:hrefDeprecated
DOM Interface
This element implements the SVGMPathElement interface.
Example
SVG
Result
Specifications
| Specification |
|---|
| SVG Animations Level 2 # MPathElement |