I am still trying to debug the jerkiness, but it doesn’t have to do with the “spring target constantly changing.” That was just a misunderstanding on my part regarding React. So the solution that I posted (basically using a modulus as the spring target) is a working solution to this. There are certainly simpler implementations that do not use useRef
, but this is just how I happened to have implemented this.
CLICK HERE to find out more related problems solutions.