The  animate SVG element is used to animate an attribute or property of an element over time.
It's normally inserted inside the element or referenced by the xlink:href attribute of the target element.

Usage context

CategoriesAnimation element
Permitted contentAny number of the following elements, in any order:
Descriptive elements


Global attributes

Specific attributes

DOM Interface

This element implements the SVGAnimateElement interface.



<?xml version="1.0"?>
<svg width="120" height="120" viewPort="0 0 120 120" version="1.1"
  <rect x="10" y="10" width="100" height="100">
    <animate attributeType="XML" attributeName="x" from="-100" to="120"
        dur="10s" repeatCount="indefinite"/>



Specification Status Comment
SVG Animations Level 2
The definition of '<animate>' in that specification.
Editor's Draft No change
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<animate>' in that specification.
Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 2.0 4.0 (2.0) No support 9.0 4.0
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 4.0 (2.0) No support 9.5 4.0

The chart is based on these sources.

Document Tags and Contributors

 Last updated by: Nomeh_Uchenna_Gabriel,