animateMotion Element

The <animateMotion> element is used to animate the object along a single-line path as well as along an arbitrary path.

Example

Test it Now

Animation along a complex path

If you want the animation along the more complex path then use the path attribute and its value in the same format as the "d" attribute in the <path>element.

Example

Test it Now
Next TopicLinks in SVG