Jump to content
Search Community

ScrollSmoother - strange behavior when resizing a window

coolDev test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hey! I was looking into the scrollSmoother plugin for my client. And I came across a strange behavior in the codePen, which is present in the documentation. When the window is resized, the page scroll position jumps to the top and smoothly scrolls to the current position. Looks like a bug? Or did I not understand something?

Here is a video demo

Link to the documentation, where this codepen

See the Pen KKXZOyZ by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hi @coolDev and welcome to the GreenSock forums!

 

That's indeed the expected behaviour. Unfortunately I don't know all the ins and outs of this process so I can't explain it to you. But it seems that ScrollSmoother is storing the ScrollTrigger progress and then re-applying it when the window resize is completed.

 

Please stand by for a more official and complete explanation.

Happy Tweening!

Link to comment
Share on other sites

Wow! @Rodrigo, @GreenSock, thanks for the quick response! I am pleasantly surprised!

@GreenSock, your codePen looks perfect. It works great.
I would be very grateful if you could give an approximate release date for 3.11.5. I understand that it is difficult to give an exact date. But I need to discuss the project timeline with the client.

One more question...

Am I correct in assuming that my client needs the "ShockinglyGreen" plan for $149 per year to use ScrollSmoother?

Link to comment
Share on other sites

9 hours ago, coolDev said:

I would be very grateful if you could give an approximate release date for 3.11.5. I understand that it is difficult to give an exact date. But I need to discuss the project timeline with the client.

Sorry, we can't really provide a release date but you're welcome to use that beta version in the meantime if you'd like. You don't need to wait.

 

9 hours ago, coolDev said:

Am I correct in assuming that my client needs the "ShockinglyGreen" plan for $149 per year to use ScrollSmoother?

Yes, exactly. And if it's used in a site/product/app for which a fee is collected from MULTIPLE users, that'd require the special commercial license that comes with "Business Green" memberships. 👍 Hopefully you'll find that the membership more than pays for itself very quickly. 

 

Good luck with the project, @coolDev!

  • Like 1
  • 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.
×
×
  • Create New...