Involve Posted April 11 Share Posted April 11 First a big thanks to GreenSock for creating this amazing animation platform! The more I use it the more impressed I get. I was wondering if there is a way to set autoKill to true as default for all my scrollTo animations? I've made some naive attempts with gsap.defaults, e.g. gsap.defaults({scrollTo:{autoKill:true}}) But I haven't managed to make it work. 1 Link to comment Share on other sites More sharing options...
Cassie Posted April 11 Share Posted April 11 Good question! I would try like that too, but you're right. It's not working. Paging @GreenSock for feedback on whether it's possible to be set another way or worth adding in a future version. Link to comment Share on other sites More sharing options...
Solution GreenSock Posted April 11 Solution Share Posted April 11 No, that isn't really possible to do a nested default value like that. But perhaps in the next release, I could add a ScrollToPlugin.config({ autoKill: true }) method. I don't think anyone has ever requested something like that before. It wouldn't be terribly expensive kb-wise. I assume you'd both vote for this addition? 2 Link to comment Share on other sites More sharing options...
Involve Posted April 12 Author Share Posted April 12 9 hours ago, GreenSock said: I assume you'd both vote for this addition? Yes I would. It's not a big thing but it would be convenient. 🙂 Link to comment Share on other sites More sharing options...
Cassie Posted April 12 Share Posted April 12 Yeah I could see why it would be useful if it's a small addition 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