Jump to content
Search Community

existentialdread

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by existentialdread

  1. Hello! I am trying to utilize the motion path plugin to lightly (within a range) follow a mouse cursor along a predefined path, but am having some issues with the values I'm seeing when using the getRawPath method, they seem to be larger than the ones I see on Circle Two. I'm thinking it has something to do with the origin, but am not sure. You can see the animation on the right for what I would like the arrow animation to be, but I can't seem to get it properly working when it is hooked up to the 'mousemove' listener. Any help would be greatly appreciated. Thanks in advance!

    See the Pen poLrEOd by january1979 (@january1979) on CodePen

  2. 3 hours ago, ZachSaucier said:

    Hey existentialdread. Thanks for making a demo and for creating a new thread. 

     

    For anything other than really basic things, this lightweight smooth scrolling approach probably isn't the way to go. If you need smooth scrolling I recommend using a more full smooth scrolling library. To use it with ScrollTrigger you should make use of .scrollerProxy(). We provide a few demos that use different smooth scrolling libraries in the scrollerProxy docs.

     

    Here's an example with your code using Locomotive Scroll:

     

     

    Hey Zach, thanks for getting back to me. I was thinking that was going to be the case. Thanks for your time and help! ScrollTrigger is awesome!

    • Like 1
  3. Hey @Ihatetomatoes, great demo. I am looking for a similar solution for smoother scrolling. I am running into issues with elements that are pinned. For instance, adding

    pin: box

    to your codepen code produces some pretty wild and inconsistent behavior. Any ideas on how I could go about handling the pinning issue? I'm trying to avoid adding in a third party 'smooth scrolling' library.

×
×
  • Create New...