Rotational playback of the image in the form of a loop

Hello,
In this video, you’ll see that the image representing numbers moves by changing the X position.
I want the image to loop back to the beginning once it reaches the end, so it looks like the numbers are on a loop. For example, if the value at the end of the image is 360, it should display from 1 and 2 again after reaching the end.
I’d appreciate it if you could guide me on how to achieve this.