Hello everyone!
I'm totally new to programming and GSAP and I guess there may be a few things in my code that could be done better, but in general everything works fine on the page except going from subpage in /work to subpage also in /work folder (e.g. from /work/project-1 to /work/project-2). In this case, the marquee infit function is not dragabble and loops badly. When we go to /about and then back to /work/project-2 everything works fine.
Pages in the project are loaded AJAX and I know that's the problem because when we enter the page via standard loading, everything works fine. Unfortunately, I can find the error. The problem is with runCaseGSAP() function.
Can you guys help me? ?
I'm attaching the code only for Javascript, I hope it's enough because the problem occurs when switching between pages and I would have to upload almost the entire page here ??