Ili_dan Posted July 7, 2020 Share Posted July 7, 2020 I want control scroll speed, because duration don't work. I want stretch this animation to more scrolls. See the Pen eYJMrpj by redan-the-sasster (@redan-the-sasster) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 7, 2020 Share Posted July 7, 2020 Hey Ili_dan and welcome to the GreenSock forums. I think you forgot to click the "fork" button on that demo? The one you linked to is just the starter template. But based on your text it sounds like you have an animation with a ScrollTrigger that has a scrub value. Have you read the part under "How does duration work with scrub: true?" in the ScrollTrigger docs? Link to comment Share on other sites More sharing options...
Ili_dan Posted July 7, 2020 Author Share Posted July 7, 2020 Yep, I'm sorry. I edited pen. Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 7, 2020 Share Posted July 7, 2020 Thanks for updating it. It confirms my guess about your situation. Please read the section in the docs that I discussed above. You can make it take longer to scroll by using something like end: "+=500", in the ScrollTrigger options. Also the timeline itself shouldn't have a duration parameter Link to comment Share on other sites More sharing options...
Ili_dan Posted July 7, 2020 Author Share Posted July 7, 2020 4 minutes ago, ZachSaucier said: Thanks for updating it. It confirms my guess about your situation. Please read the section in the docs that I discussed above. You can make it take longer to scroll by using something like end: "+=500", in the ScrollTrigger options. Also the timeline itself shouldn't have a duration parameter Thx its work. But i want to create more sections on this page. I edit pen. Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 7, 2020 Share Posted July 7, 2020 I'm not sure what you're asking. Perhaps it'd help to read the article on animating efficiently? Please try to clearly state your question if you'd like our help. Also please use the "fork" button when creating new versions of your demo so the context is not lost for previous demos in the thread. Link to comment Share on other sites More sharing options...
Ili_dan Posted July 8, 2020 Author Share Posted July 8, 2020 17 hours ago, ZachSaucier said: I'm not sure what you're asking. Perhaps it'd help to read the article on animating efficiently? Please try to clearly state your question if you'd like our help. Also please use the "fork" button when creating new versions of your demo so the context is not lost for previous demos in the thread. Ok. I want create animation to long. But now i can do fast scroll move and my animation be in the end. I want way to made animation process to longer. And after animation i can scroll to second block. Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 8, 2020 Share Posted July 8, 2020 All I can say is read the ScrollTrigger docs and watch the video. It can help you get a better understanding of how scrub works. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now