Best way to trigger animation attribute of custom svg in perspective

I have created a custom svg using Inkscape. I edited the svg file and added transform animation. I want to trigger the animation attribute inside the perspective using tags. What will be the best way to do it? Suppose I have this following svg where a rectangle is moving linearly.`

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg width="800" height="600" xmlns="http://www.w3.org/2000/svg">
  <path
           id="rect1"
           style="display:inline;fill:#000000;stroke:#000000;stroke-width:0.311317"
           d="M -34.880352,3.1103516 H 167.58835 V 75.414421 H -34.880352 Z" />
		   <animateTransform
				attributeName="transform"
				begin="0s"
				dur="20s"
				from="M -34.880352,3.1103516 H 167.58835 V 75.414421 H -34.880352 Z"
				to="190"
				repeatCount="indefinite" />
</svg>

There is already quite a bit of information on this forum for this topic.

Perhaps look through these for help first.
https://forum.inductiveautomation.com/search?q=Perspective%20animation%20%20order%3Alatest