GSAP Interaction doesn't load twice when DOM loads multiple times


Hi everyone,

I’m experiencing an issue with GSAP animations in my project. When the DOM loads for the first time, my GSAP interactions work perfectly. However, when the DOM loads a second time (for example, through page transitions or dynamic content loading), the GSAP animations don’t initialize again.

The animations only run on the initial page load, and subsequent DOM loads don’t trigger them. Has anyone encountered this issue before?

Any help or suggestions would be greatly appreciated!

Thanks in advance!

1 Like