The <animateTransform> element is used to animate the object along a straight-line path.
The <animateTransform> element works with rotate, translate, scale or skew transformations.
If you want to rotate the shape then you have to set the attributeName as transform. and type as rotate.
ExampleTest it Now