Jump to content
Search Community

alpox

Members
  • Posts

    3
  • Joined

  • Last visited

alpox's Achievements

  1. Thank you very much for the effort and good insight! I did not yet know about the Observer plugin. This does seems to fix the "scroll too much" issue. Sadly its not very usable for us as we have native-scroll-position-initiated animations in the sections and overall would like to keep the native scroll (with scrollbar position relating to the single sections). Also, the observer seems to still have the "scroll two sections at once" issue due to kinetic scrolling. Would you know a way to get closer to a solution while keeping the normal scroll positioning (and usable scrollbar) around?
  2. Hi @mvaneijgen many thanks for your response! I have found `snap` before but it doesn't seem to be what I need. It only snaps after scrolling is done allowing to go multiple pages at once with one scroll intent. I have to be able to only go one page at a time and have no delay between stopping the scroll and "snapping". Much like the version I had at first but without the "scrolling too far" for touchpads. Combining the snap and the section scroll animation kind-of works when I set `snap: 0.1` but it behaves a bit wonky and after the animation is done it still goes a bit too far and then back to the section again due to the snapping setting in late. I also tried with some more settings for snap and also combined with the scroll-to animation but until now to no avail.
  3. Hi everyone, its my first time here. Attached is a pen with a very basic full page scroll setup with ScrollTrigger & GSAP animations. The third page is on purpose bigger than a screen because in my real scenario there are sections higher than a screen as well and those have to normally scrollable. The only problem however is that when using a MAC Touchpad (Maybe other touchpads as well?) instead of a mousewheel the browser keeps emitting scroll events even after the snap animation is done effecting in sliding more than one page. As I add offsets to the ScrollTrigger it even happens that i'm not landing exactly on one page but a bit further into the offset due to additional scroll issued after the animation is done. Do you know anything that can be done to prevent this kinetic scroll after the animation is done such that no offset-scroll is issued as well as not multiple pages are skipped when using a touchpad with kinetic scroll enabled?
×
×
  • Create New...