Or use the animation framework the game already provides instead of setting properties in your own code manually.
You can find an example of how it is used in the
ui source code.
"LoadIconAnimation" rotates a texture by 360° every 1.5 seconds as defined
here.