I'm running into an issue where I have panels displaying content that are hidden/shown on click. On click, the panel content loads and a three functions run, one runs scrolltrigger, one runs splittext and then one that animates the splittext. When a panel is open and the close button is clicked, all three functions should reset.
The two issues that I'm running into are, not having the GSAP functions run properly on the click of the panel and the functions not resetting on the click of the close button. The codepen contains my efforts so far.
Thank you for any help.