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
Skip pinned element #173
Comments
Hi Ben! Glad you like the plugin. Once you did, you can make use of ScrollMagic's "enabled" method to temporarily disable the animations from happening: http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#enabled Should you have any problems moving to ScrollMagic or implementing this, please follow ScrollMagic's troubleshooting guide and/or post an issue. best regards, |
Ah, perfect thanks. I'll give it a go. |
Hi Jan I am using the 'enabled' method, but it appears to only work the first time I am using it. When the function below is called for the first time, it does indeed disable the scene. However, from then on, calling this function does not seem to disable the scene. Am I doing something incorrectly here? function scrollToEl(sID) { } Thanks for your continued support. Ben |
It looks like ScrollMagic code. |
Hi. This is a really powerful plugin and I am so glad I stumbled across it.
I have a pinned div element which stretches to the size of the screen and has some basic animation in the form of images sliding in as you scroll.
At the bottom of this "Screen2" element I have a button which fires a scroll event, so the user can skip down to the next screen.
The problem I have is I do not want the animations in the pinned element to fire when the above scroll function is fired. I want it to just scroll to that element smoothly. What happens is that all the elements in the tween animation fire in one by one and when they have finished, the page scrolls to the desired element.
I have tried using the removePin function, but this disables the pin completely after you have scrolled. I tried firing the controller.pin function again after the scroll event has finished, but this causes the screen to jump back up to the pinned element (Screen2).
Is there anything I can do to get around this please?
Thanks
Ben
The text was updated successfully, but these errors were encountered: