How to rotate an object back and forth around a specific point?
问题 I'm using Raphael JS in an attempt to rotate an image shape around a point which is below its center point. How can this be done? I have tried the following but it doesn't work. var playBBox = playButtonRef.getBBox(); var xPos = playBBox.x + playBBox.width/2; var yPos = playBBox.y; var animObject = Raphael.animation({ transform: playButtonRef.attr("transform") + "R60," + (this.cx - 25) + "," + this.cy }, 3000); animObject = animObject.repeat(10); playButtonRef.animate(animObject); I'm also