Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
IntouchGroup

gsap3 - scrollTo autoKill

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

Using y did make it scroll (thank you), but the onAutokill still fires on load

Link to comment
Share on other sites

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. 

  • Like 2
  • Haha 1
Link to comment
Share on other sites

Hot Damn! That's working. Thank you. My god you guys just hear about an issue and are all over it aren't you? 

  • Thanks 1
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.
×