Jump to content
Search Community

Slider error: invalid top tween value: NaN

Karthick Sivakumaran test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi Team,

 

We have a website with a slider integrated with jquery.themepunch.plugins.min.js. The plugin throws following error after upgrading jQuery version to 3.3.1. The slider works fine when we use jQuery 1.9.1 but not for the latest.

 

Error: invalid top tween value: NaN

JS file URL: http://www.dubaiopera.com/wp-content/themes/opera/js/jquery.themepunch.plugins.min.js?ver=5.1.1

DubaiOpera-error.thumb.JPG.af147e5ddf4e6d8340011144a812aa69.JPG

Can anyone help us to find out a workaround? Thanks in advance.

 

Karthick.

 

See the Pen js by wp-content (@wp-content) on CodePen

Link to comment
Share on other sites

It sounds like somewhere in your code, you're passing in a tween value of NaN, like: TweenMax.to(... {top:NaN}); That points to some issue in your code that's unrelated to GSAP. 

 

We can't really troubleshoot based on a minified JS file out of context. If you still need help, please provide a reduced test case in codepen that uses the minimal amount of code. But again, this doesn't really sound like a GSAP-related issue. I wish I had a great answer for you :(

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...