Hi, I am back trying to make a horizontal layout using GSAP though it doesn't seem to work properly, here is my codesandbox.
https://codesandbox.io/p/sandbox/cranky-leaf-nop4s3
The two problem here is
1. It doesn't seem to respect height: 100% on #page element, I think it's probably due to pin spacer but I am not sure myself. Relevant thread I checked doesn't seem to give me a concise solution
2. Resize inconsistency. What I expected between resizing is that the scroll should go to the last end of the last section. As it can be seen, the translate() function stops at -2675px while the total calculated maxWidth is 2710px. From App.tsx, I am currently using invalidateOnRefresh for this purpose.
You can see that this becomes slightly more erratic the more you try to resize
3. This is a probably bit related to 2 but I have no confidence in being able to fully replicate this here. ReactJS seem to act a bit funny with gsap where the xOffset value tends to be inaccurate on first load (Similar demonstration as 2), but once initiating a hot-swap, the values line up.
(Though there are case where one of the element reportedly shows the wrong size on both function until hot swap as well, again, similar demonstration as 2 though this usually happens at the 3rd section for me)
I am current at my wit end here, my apologies the code looks a bit messy. And thanks for helping.