Jump to content
Search Community

GSAP 3 warnings?

jesper.landberg
Moderator Tag

Recommended Posts

jesper.landberg
Posted

Hi,

 

How do I get rid of all the warnings in the console? For example when tweening custom object properties, setting overflow etc.

 

GSAP target  not found. https://greensock.com

Invalid overflow tween of hidden Missing plugin? gsap.registerPlugin()

Posted

If you want to stop GSAP from warning you when you create tweens of targets that don't exist, you can do this: 

gsap.config({nullTargetWarn:false});

But the invalid tween isn't suppressible, and I wouldn't recommend it either because it means you're literally trying to tween properties that don't exist on the target. I'd strongly recommend fixing your code rather than trying to suppress the warnings. 

 

It'd probably help if you provided a reduced test case, like in codepen, if you're still having trouble. We'd be glad to help. It's just tough to troubleshoot blind. 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...