How can I create an endless loop for a vertical ticker?

Hello All,

I have managed to create a working Vertical Ticker onto this website, however I would like to make sure that loop is endless, rather than the ticker scrolling back to the top after reaching the final announcement.

An example of this would be here: https://codepen.io/panwron/pen/EmyoRp

As you can see, the ticker resets after “Six”, but goes straight to “One”.

I would like to find out how to make this possible with my current ticker.

The code can be found here:


Please see the link to the website here: https://toptoys2u.co.uk/collections/paw-patrol-everest

Kind Regards