Hi,
On top of @mvaneijgen's great solution you could also use the onToggle callback from ScrollTrigger:
onToggle
Function - A callback for when the ScrollTrigger toggles from inactive to active or the other way around. This is typically when the scroll position moves past the "start" or "end" in either direction, but if it shoots past BOTH on the same tick, like if the user scrolls extremely fast, onToggle won't fire because the state hasn't changed. You can often use this one callback in the place of onEnter, onLeave, onEnterBack, and onLeaveBack by just checking the isActive property for toggling things.
Here is a simple fork of your demo:
https://codepen.io/GreenSock/pen/XWQaZdV
Hopefully this helps.
Happy Tweening!