0

I am using gsap for the first time in Angular and was trying the Scrolltrigger. In my localhost all works fine with this code:

enter image description here

The boxes faded in nicely but now we come to my problem.

I use "ng build --prod" to generate my project and loaded it on my server.

If I now look on my page, there isn't any animation and I got the following error in console:

Invalid property scrollTrigger set to {trigger: p.readmore-block.fadeIn.ng-tns-c45-3, start: "top bottom", markers: false, scrub: 1, end: "top center"} Missing plugin? gsap.registerPlugin()

Can anyone help me out?

Pradeep Kumar
  • 1,193
  • 1
  • 9
  • 21
  • The fact that it works fine locally tells me it is very likely not related to GSAP. You have to give us more info on your production config, ext lib used, etc. I suggest also posting your problem on gsap forum, maybe there will be more experienced gsap user – A G Dec 15 '22 at 10:48

0 Answers0