Jump to content
Search Community

autoKill default for scrollTo

Involve test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

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.

 

  • Like 1
Link to comment
Share on other sites

  • Solution

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? 

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...