Im, trying to apply the lerp function to smooth the movement of a ellipse that goes from one base to another. but i have an issue adding the lerp function because i`m using set interval to change the data based on a JSON object.
what I have already is three withe ellipses on the canvas and one black ellipse going from one base to another.
but what I want to add is the lerp function to make easy the movement of the black ball by the lerp function.
the problem that I have is that I`m using set interval, to change the values of the black ball. to the next base.
Is there any solution to make little percentage movements between each frame that make the counter? o it is necessary the counter to being also counting the little movements between each base?