Jump to content
Search Community

Uncaught TypeError: Cannot read property 'top' of undefined

phsims 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

I am using greesock and superscrollorama and I am having a problem with animating some sections of my site.  

 

  1. Uncaught TypeError: Cannot read property 'top' of undefined jquery.superscrollorama.js:99
    1. s.dispatchEventTweenMax.min.js:16
    2. f

 

Everything works perfectly on my localhost but I keep getting the same error when on a live site. you can see it here http://efc.demosite.me.uk/

 

Any help would be much appreciated thanks :)

Link to comment
Share on other sites

Hi,

 

What is exactly the problem?, something that should is not animating?.

 

Knowing exactly what's not working would help to pin point the issue; note that if you're getting an error with TweenMax.min.js use the production version of the code, but I'm only getting the superscrollorama issue on line 99 when I open the site.

 

But mainly the error has to do with some problem with a particular DOM element that is not defined, try creating variables for the elements your animating via scrollorama and pass those instead and see what happens. Also you're adding two different versions of JQuery (1.8.3 and 1.9.1).

 

For your navbar you could give the scrollTo plugin a try.

 

Hope this helps,

Cheers,

Rodrigo.

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