I apologise for being an absolute novice to JS and gsap but I'm a tad lost as to why this doesn't work. I'm trying to write code that takes two numbers and a duration to flash and scale as it animates a counter through the two numbers. I found this example on a separate thread : https://codepen.io/GreenSock/pen/poOaVZd
But I cannot for the life of me understand why I'm unable to get the iterating of the numbers working, would appreciate any input, thanks!