CSS Transition of "trasform" property for SVG elements

The element below should transition when button is clicked

The SVG transition should be identical with the CSS one

SVG compound

CSS compound