I’m trying to rotate an SVG <polygon> (or any other element) using this:
var svg = new $.svg._wrapperClass($('#test'));
$(svg._svg).animate({svgTransform: 'rotate(720,100,100)'}, 2000);
The polygon really changes its angle, but with some strange trajectory of moving.
Please, go to this link to see it: http://jsfiddle.net/ExaBP/
My goal is to make the polygon spinning around its center.
The problem is that the rotation center your polygon is on coord(0,0) > look at the points :
So, if you use (cx,cy) for the rotation in animate, these parameters are also animate, from 0 to 100 then to 0.
You must change the center before and after the animation.
But here, I think you need a different approch :