SVG - Follow rotated path
问题 I'm trying to have a circle follow an elliptical path that is rotated, using Snap.svg, but I've ran into a problem. Using the getPointAtLength only returns the point of the path that is not rotated, so when I rotate the path, the circle will still follow the original path, before rotation. var firstOrbit = s.path("M250,400a150,75 0 1,0 300,0a150,75 0 1,0 -300,0") .attr({stroke: "#000", strokeWidth:"5", fill: "transparent"}); var len = firstOrbit.getTotalLength(); firstOrbit = firstOrbit