Jump to content
Search Community

GSAP tweening between numbers bug!

Lawrence Turton test
Moderator Tag

Recommended Posts

Firstly on your NPM page: https://www.npmjs.com/package/gsap

The link to the CDN link is wrong: <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.0.1/gsap.min.js"></script>

 

Secondly tweening between large numbers 0 to 300,000 produces a negative value, in the older versions of GSAP it's working perfectly.

 

Working version (1.20.4 OLD VERSION):

See the Pen wvvEWoM by JoeCoulam (@JoeCoulam) on CodePen

Latest GSAP not working version (3.0.1 New version):

See the Pen xxxaNzr by JoeCoulam (@JoeCoulam) on CodePen

  • Thanks 1
Link to comment
Share on other sites

Hey Lawrence,

 

We're still not sure why CloudFare has not been able to update the CDNJS file links. Usually it takes 15-20 minutes but for some reason it's been 50+ hours and they still haven't gotten up there. They are hoping to get them online today but are not sure if they can. Sorry about that, but there's nothing we can do at this point. We've already reached out to them.

 

For now, we're recommending that folks use jsdelivr like you did in your pen - https://www.jsdelivr.com/package/npm/gsap The main GSAP file is at: https://cdn.jsdelivr.net/npm/gsap@3.0.1/dist/gsap.min.js 

 

Thanks for bringing this bug to our attention. We'll make sure to get it fixed ASAP! @GreenSock

 

We recommend using the new simplified API format including the duration being in the vars parameter, using the gsap object instead of TweenMax/TweenLite, and using the simplified string format for eases:

 

See the Pen xxxaoKp?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 1
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.
×
×
  • Create New...