You won't be able to use this in Perspective, as the function is only scoped for Vision Client. See here under Scope:
If you can please provide some more information on what you are trying to achieve, we might be able to give you some pointers.
In perspective this functionality is generally accomplished using CSS animations.
Provide information on what you are trying to accomplish and Iām sure someone can help you out.
Use the View Canvas component and set up duration to automatically smoothly animate between states.
So many ways you could do it; View Cavnas (as above), CSS, SVG.
SVG
If the graphic is an embedded SVG and you don't mind about transitions (i.e.it moves in small increments), you could bind to the x-coordinate or use a translate transform on the SVG text element:
It is also easy to dynamically bind to attributes of other elements too; fill, stroke, size etc.)
CSS
Take a look at the animated style classes too; heaps you can do with that as well:
l
thanks a lot
thank you very much!