<rect x="32" y="32" width="64" height="64">

  <animateTransform
        attributeName="transform"
        type="scale"
        values="1 1; 1 1; 1.5 1.5; 1 1; 1 1; 0.5 0.5; 1 1"
        dur="4s" repeatCount="indefinite"/>

</rect>