I've recorded a video demonstrating the issue here.
1. I open the sandbox then go into full view in a new tab.
2. The animation works correctly initially, with the horizontally scrolling containers being of the right width.
3. I resize the window, the components resize correctly, but the ScrollTrigger no longer snaps at the correct locations, and scrolls beyond the end of the components, as if the width variable hasn't updated.
4. If i maximise the window again, the animation works correctly
I should also note if I refresh the page in the smaller window, the ScrollTrigger width updates correctly. This issue occurs on Safari, Chrome, and Firefox on different computers, and also when locally hosting the website. As you noted before, the getWidth() function is run when the window is resized, but the animation doesn't seem to be updating correctly.