Comment Comment by kirjavascript it's actually possible to reduce duplication in this case with the <g> element, see this example;https://jsfiddle.net/2kc6tqy1/2/ parent kirjavascript 8 years ago
https://jsfiddle.net/2kc6tqy1/2/