Hi again,
I've now tried to implement both approaches. The vertical endless loop helper function almost got me there - but I only got it to work scrolling down, not up. It also seems a bit jittery as the animation slows down, and it doesn't allow me to set the easing function used (?)
How would I go about making this able to scroll upwards as well?
I don't know if the mapping I'm using to turn the deltaY value into a time value for the timeline is the culprit.
https://codepen.io/oldflattop/pen/mdaygJQ
I also tried using the wrap utility, but it had the same effect as manually clamping the numbers using if/else statements, as in my first post.
Meaning, I'm not able to use any duration or easing on the animation, as then it starts jumping back and forth between the numbers.
https://codepen.io/oldflattop/pen/qBLEvwX
Sorry if the codepens are not embedded, the function seems to be broken on my setup, don't know what's happening!
Thankful for any help ?