-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrollTo and Superscrollorama #13
Comments
Hi, If you use some Pins functions, that will modify the global height of your document when you scroll, you will need to reclaculate the reall value of the scrollto. For example: Hope it helps. |
could you show a demo please? I am a beginner in javascript Thanks :) |
Of course. http://www.thomaslartaud.com here is the code that might interest you: I also added a test to know where i am on the page when i click the menu, because the value will be diffrent so. This code is actually not 100% working on my website, because i made a lot of changes in the processus section, but it show you how to think about it. Cheers |
Hi i'm having the same kind of issue would this work if the pinned section is 100% height of the browser? |
Now you can use the method "setOffsetPosition". |
setOffsetPosition doesn't exist as far as I can tell. I am also experiencing an issue when I use window.scrollTo(x,someY); because I am manually editing multiple backgrounds and spacer elements. |
I read the issue from a while ago, but I don't really understand.
Could you show a quick example?
Thanks :)
The text was updated successfully, but these errors were encountered: