Jump to content
Search Community

Andrea Fiadone

Members
  • Posts

    2
  • Joined

  • Last visited

Andrea Fiadone's Achievements

0

Reputation

  1. The codepen example is just to give a clearer idea of the context, but the issue occurs in a production-like environment.
  2. Hi everyone, I have a simple page with a list of sections and I made each one to pin when it reaches the top of the viewport and to remain pinned until an animation inside is completed (I also use the "scrub" property to control the animation by scroll). It's almost like this official example and all works as expected, except for one point: if I land on the page with a location.hash in the url, I'm not brought to the section with the corresponding id. Is there a way to instruct ScrollTrigger to preserve the original scroll position even if some pins are initialised? Thanks!
×
×
  • Create New...