The obvious way to morph an SVG shape tears it apart. Why it breaks, and the least-squares transform fit that makes the animation actually work.