Jump to content
Search Community

yarnb

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by yarnb

  1. 1 hour ago, GreenSock said:

    That's necessary for proper pinning. But you could try just animating those max values too: 

     

     

     

    Or better yet, wrap the element in a container so you can pin the container and animate the target. It's almost never a good idea to animate the same element that you're pinning (well, at least dimensions/position). 

     

    In this way, when I enlarge the scrolling content, once the scrollerTrigger is out of range, the size of the element is reset

    See the Pen vYrpGwM by bzonegogogo (@bzonegogogo) on CodePen

     

    But now I am refactoring the code in the direction of your suggestion, thank you
×
×
  • Create New...