Jump to content
Search Community

srbm

Members
  • Posts

    1
  • Joined

  • Last visited

srbm's Achievements

0

Reputation

  1. Hi, How can I shorten a div's height after I scroll past it with scrollTrigger set to scrub: true so that I can scroll to the top much faster. Scrolling down I have a long div that's pinned with a long animation series created with a set of images. On the way back up I want to freeze all the animations at the last frame and have a much shorter scroll length to get to the top. I'm able to freeze the content by using pause in the onUpdate function of the tween, but I'm stumped on making the scroll height smaller. Thanks for your help. PS. I tried getting a code pen together from your starter code pen but kept getting errors.
×
×
  • Create New...