IntouchGroup Posted November 26, 2019 Share Posted November 26, 2019 I read the documentation and a post here about using autoKill, but I'm not getting it to work. My code seems to be firing the autoKill on start, isn't it supposed to fire on user interaction? Also, this is not scrolling at all. Can anyone see what I'm doing wrong? CodePen edited to use 'y' not 'top' See the Pen XWWLEjY by cmbarsotti (@cmbarsotti) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 26, 2019 Share Posted November 26, 2019 Hey IntouchGroup. Thanks for posting and for being a Business Green member! Besides the fact that you should be using y instead of top, I believe that this function is being fired too early. It even fires if autoKill is set to false @GreenSock. 1 Link to comment Share on other sites More sharing options...
IntouchGroup Posted November 26, 2019 Author Share Posted November 26, 2019 Using y did make it scroll (thank you), but the onAutokill still fires on load Link to comment Share on other sites More sharing options...
GreenSock Posted November 27, 2019 Share Posted November 27, 2019 Ah yes, it was calling that function immediately because GSAP interpreted it as a function-based value That should be resolved in the next release which you can preview at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/ScrollToPlugin3.min.js Link to comment Share on other sites More sharing options...
IntouchGroup Posted November 27, 2019 Author Share Posted November 27, 2019 I copy and pasted the preview Javascript into my codepen and removed the link to https://cdnjs.cloudflare.com/ajax/libs/gsap/3.0.1/ScrollToPlugin.min.js and I'm not seeing any change. Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 27, 2019 Share Posted November 27, 2019 @GreenSock It shows "killing!" (not sure where it's coming from) in the console but doesn't run the onAutoKill function: See the Pen WNNVGga?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted November 27, 2019 Share Posted November 27, 2019 LOL - I accidentally uploaded the file I had been using for troubleshooting rather than the real/final one I've uploaded the proper file now. Sorry about the confusion there. 2 1 Link to comment Share on other sites More sharing options...
IntouchGroup Posted November 27, 2019 Author Share Posted November 27, 2019 Hot Damn! That's working. Thank you. My god you guys just hear about an issue and are all over it aren't you? 1 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