Custom GSAP animations

I’m wondering if it’s possible to add GSAP animations using custom code to a DivHunt website. I know there is a plugin, but I need more custom animations using GSAP plugins like ScrollTrigger and ScrollSmoother.

Since DivHunt is a SPA by default, would this even be possible? Since you don’t have a hard refresh when changing pages, I know that when using GSAP with other SPA frameworks like Nuxt or Next JS you have to “clean up” your animations. How would this work with DivHunt?

In custom files we have event “on page load”, if GSAP has ability to ‘clean up’ animations on page load, you can do it like that?

1 Like

Sounds like something that can work. I’ll try that, thanks!