@Rodrigo Thanks so much for your help! Your solution on CodePen did not work and I tried the wrap helper function before. But your explanation has led me to the solution: After setting up the loop timeline, I am instantly jumping to the end of the timeline like so:
const loop = horizontalLoop(images, {
repeat: -1,
paddingRight: '24px',
centerAlign: true,
paused: true
})
loop.progress(1)
This solves my problem, because then I can also have negative progress values. I still can't quite wrap my head around it because at a certain point when constantly scrolling to the right (in a negative timeline direction) the progress will go past 0 and become negative at a certain point, right?
But nevertheless, it works. Here is the updated Pen:
See the Pen mdzLOKL by moritzlaube (@moritzlaube) on CodePen
Thanks again for your help! It's awesome to be part of this community.