Jump to content


  • Posts

  • Joined

  • Last visited

About neo420

neo420's Achievements

  1. Hi akapowl, I resolved the problem by passing to ScrollTrigger.refresh parameter safe to true ScrollTrigger.refresh(true) I guess the DOM wasn't fully charged. Thanks again for your time, Have a nice day !
  2. Thank you @akapowl for your reply. I tried this, looks like it's not the problem. I'll show it with a gsap codepen that i modify a little bit. https://codepen.io/benmcarnolds/pen/oNLBLJy So when I first go the page, every thing works fine. When I leave the page the unload() function is called, locomotive.destroy() and triggers killing. And when i come back, every thing seems to work until ScrollTrigger.refresh(); Can't figure it out, what i shall do
  3. Hi ! I'm actually struggling - killing and resetting ScrollTrigger. Let me explain. I'm currently developping a website using ScrollTriger AND locomitive-scroll. I succeed making both working perfectly together, thanks to your example. But the thing is that my website is in ajax (Barba js), the first time i go to my page, every thing is alright but when I change and i come back, there is an error on the ScrollTrigger.refresh(). I tried : ScrollTrigger.kill(); ScrollTrigger.removeEventListener('refresh', () => locoScroll.update()); ScrollTrigger.removeEventListener('refreshInit'); Do you have any idea what am I doing wrong ? Thank you very much for your work !
  4. This is exactly what I was looking for ! Thank you very much Zach and Jack for the answers
  5. Hello, I'm using MotionPathPlugin to generate a path from html points. I want now to animate my path with DrawSVGPlugin and jump from point to point. The thing is I can't find a way to get the right percentage of my point in the path. I tried with the DrawSVGPlugin.getLength(), and my point.x but that would only work if it was a straight line. Is there an easy way to get this percentage ? Thank you, Ben
  6. Great, this is what I need ! Thank you very much Zach, have a nice day
  7. Thank you for the fast reply Actually i want to draw a line when my pen is moving, so creating a svg from my points could help. I'm not a big expert of svg but it seems like I have what i need with arrayToRawPath, haven't I ?
  8. Hello, First of all thank you for this great library I have multiple point (html element) and I'm moving a "pen" from point to point with MotionPathPlugin . So i have my array of object, my pen is moving fine, but I'm having trouble trying to figure out how to output a rawPath from those points. Is there a way ? Thank you !