And did the same thing for the static text section but can’t get them to sync. I used CSS for the text because I noticed the the interaction “while scrolling in view” doesn’t work with CSS for the sections jointly and that seems to be reflected in the comments as well.
Since you’ve already got all the different elements working separately, you’re halfway there!
For syncing your sections and the static scroll box, you’ll need to ensure that both are part of the same scroll container and have the same snapping points. This often involves a bit of trial and error to get the alignment just right.
One thing you could try is to wrap both the sections and the static text box in a single container. Then apply your CSS scroll snap properties to this container. This way, as you scroll, both the sections and the text box will adhere to the same snapping points.
That’s great advice! That’s what I was thinking to do next but also have some piece of the text as static and only need to rotate 1 distinct word so it makes it a little bit more complex.