Very cool, I didn't realize you could break a timeline up into pieces and drop a loop in the middle. I've updated the pen with the loop
https://codepen.io/gram3000/pen/zZMBzQ
Looks like I've got lots to learn Thanks so much for providing a solution for me. I didn't understand how the if statement wrapping the timeline was creating a new instance each time the function ran.
Thanks so much for your guidance on JS
Graeme
I'm new to JS and GSAP so good chance I'm missing something basic. I'm trying to restart the timeline when the if statement is true. The console.log fires but not the function. http://codepen.io/gram3000/pen/aJYBzN
Thanks for the help
Graeme