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

  <animateTransform
        attributeName="transform"
        type="translate"
        values="-32 0; 32 0; -32 0"
        dur="4s" repeatCount="indefinite"/>

</rect>