Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

gsap 3 vs 2, clearprops with "top"

Recommended Posts

Just moved to GSAP 3.2 from TweenMax 2.latest and noticed this warning. Does not happen with TweenMax.set equivalent.


For code 

gsap.set("#nb", {top: "200px"});
gsap.set("#nb", {clearprops: "top", bottom: "58px"});

I get a warning in 3.2.6, but things continue to work well.


Invalid property clearprops set to top Missing plugin? gsap.registerPlugin()


Here is the full log demo.localhost-1588964285633.log



#nb {
  position: absolute;
  padding-top: 8px;
  white-space: normal;
  /* needed for edge because edge doesn't understand break-spaces */
  white-space: break-spaces;
  font-size: 16px;
  width: 100%;
  left: 0%;
  line-height: 1.3;


Link to comment
Share on other sites

You spelled it wrong. Should be clearProps



  • Like 3
Link to comment
Share on other sites

Nice! Thanks @OSUblake


Link to comment
Share on other sites

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.