There is
an example in codepen, which shows the influence of FPS on the perception of the animation. The source code is not mine, but how to make so that the ball does not fall, and jump infinitely, or after the fall started from the beginning, that's fine too. We need any solution in which the animation will go on forever and it will be possible to watch forever.
I would be very grateful to anyone who can help solve the problem.