Jump to content
Search Community

OEO

Premium
  • Posts

    6
  • Joined

  • Last visited

About OEO

OEO's Achievements

  1. That's amazing Jack, Works like a charm! Thank you very much for the fix (and for the explanation; actually makes a lot of sense).
  2. Sure: https://codepen.io/oscarorton/pen/yLQWGWB As you can see return _offset has to be multiplied by the scrollSmoothers speed for it to be accurate, and only for certain versions. I was wondering if this is expected behavior or a bug; it seems a bit weird that the scrollSmoother.offset() function doesn't return the actual offset of an element. Thanks!
  3. Hi there, Is this still not fixed? I'm using ScrollSmoother 3.12.2 but the speed still messes up the return value for scrollSmoother.offset(). When i set the speed to 0.5 the returned offset is double what it's supposed to be (so i have to multiply it with the speed) Or am i missing something? Thanks!
  4. Thanks guys, Managed to get it to work using refreshPriority:-1 only, without using the .sort() function. I had some labels at the top of their sections that i wanted to pin but because the sections itself consisted out of a lot of pinned animations i wanted to create the scrolltrigger for the label as last so that the trigger's height already took the pinspacing in account. The refreshPriority is what i needed. Thanks for making me understand the flow a little better! Cheers, Oscar
  5. Hi Rodrigo, Thanks for the fast response! The refreshPriority and .sort() did the trick. Still a little confused about the refresh order being different when using ScrollSmoother but it works now so I'm not complaining ? Last question: do i have to call ScrollTrigger.sort() after every scrollTrigger that uses refreshPriority or can i just call it once after all the scrollTriggers are added? Thanks a bunch man, really appreciate it!
  6. Hello, I'm working on a rather large one page website with loads of different tweens, scrolltriggers, pins, timelines, etc. The site uses the ScrollSmoother plugin for smooth scrolling but i noticed weird behaviour when using the smooth scroll. I've included a pen to mimic the part that's causing problems When using ScrollTrigger.refresh() the order of the triggers being refreshed is different when using the ScrollSmoother. In the included pen i have 3 sections with 3 different types of animation. the order of the tweens in js is not the same as the order of the sections: 1 - normal tween with scrolltrigger - section #2 2 - timeline tween with scrolltrigger - section #3 3 - Scrolltrigger.create() - section #1 When not using the ScrollSmoother, the refresh order is: 1 - 2 -3 (as it should be) But when i enable SmoothScroller the refresh order is: 3 - 1 - 2. This messes up my triggers because 1 and 2 both have pinspacing. I've tried refreshing the timelines' scrolltrigger as mentioned here, but no success. I did manage to get it to work using refreshPriority:-1, but i don't think that's a fitting solution for me (because of the large amount of tweens/triggers/etc). So i was wondering if this is expected behavior or if i missed something or did something wrong or anything. Just trying to wrap my head around it. Any help would be highly appreciated! Cheers, Oscar
×
×
  • Create New...