Jump to content
Search Community

Łukasz

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Łukasz

  1. 7 hours ago, GreenSock said:

    I believe this is fixed in the next release which you can preview at https://assets.codepen.io/16327/ScrollTrigger.min.js

     

    If you need a .tgz file (like to npm install), you can get it at https://assets.codepen.io/16327/gsap-beta.tgz

     

    Does that work better for you? Please let us know if you notice any other issues. 

    After installing the .tgz file the problem is gone. I'll let you know if any other issues come up. Thanks

    • Like 1
    • Thanks 1
  2. Hi everyone,

     

    my project is built with Next.js. After updating gsap from 3.6.1 to 3.7.0 I encountered a problem with scroll position. Next.js scrolls to top by default after navigation to another page, but that no longer works when I have gsap 3.7.0. New page maintains the scroll position of the previous one.

     

    Here are two demos:

    one that demonstrates the correct behaviour with gsap 3.6.1 https://codesandbox.io/s/gsap-361-38gq7

    and another one with the unwanted behaviour with gsap 3.7.0 https://codesandbox.io/s/gsap-370-vzw7s

     

    Adding ScrollTrigger.refresh(); which helped in the case linked below, hasn't solved my problem. 

     

    Any ideas how to bring back the good old behaviour?

     

    Thanks a lot!

    Lukasz

    • Thanks 1
×
×
  • Create New...