kswedberg / jquery-smooth-scroll

Automatically make same-page links scroll smoothly
MIT License
1.97k stars 427 forks source link

Cannot read property 'top' of undefined #71

Closed BenRacicot closed 9 years ago

BenRacicot commented 9 years ago

Hello, I've loaded up Smooth-Scroll for the first time and am getting a strange error: Uncaught TypeError: Cannot read property 'top' of undefined I've gone through the code and all dependencies are loading correctly. Thanks!

UPDATE: I had the link Id's setup like a traditional 'on-page' anchor link would go. I've read through the examples to see how Smooth-Scroll works. Thanks for building it.

kswedberg commented 9 years ago

Ah, glad you got it working!