Making GSAP SplitText responsive after resizing the browser window
When using GSAP SplitText with type: “lines”, there is one important thing to keep in mind: your lines can change when the viewport changes. You need to have a fix so when users resize the browser window it doesn’t look broken.