Jump to content
Search Community

nightcoder

Members
  • Posts

    8
  • Joined

  • Last visited

Community Answers

  1. nightcoder's post in how to convert cx and cy of a circle to start value of motionPath with MotionPathPLugin? was marked as the answer   
    I found the solution using the getPositionOnPath() method as shown in the docs!!! so cool!
    here is the codepen link with correction. i did it quickly cause i'm implementing that in a bigger project with nextjs etc... but just to get the idea!
    hope this will help someone ! happy tweening yall!
    (oh and if a gsap Jedi has some recommandations and stuff or a better approach, please let me know. as i said i implemented it in a react18 component and i use useState and isoMorphicLayoutEffect to keep track of all the values returned along the way etc... and it works smoothly sofar)

    See the Pen qBKrXJz by newnightcoder (@newnightcoder) on CodePen
  2. nightcoder's post in ScrollTrigger doesn't work since i installed webpack... was marked as the answer   
    i finally found the solution and totally forgot to come back here to give some news!
    So indeed ScrollTrigger works like a charm with webpack, no problem at all.
    The issue came from my webpack.config.js file and the way i used to bundle my scss files!
    All is fixed now that the scss files are bundled nicely, no more weird behaviour of ScrollTrigger.
    Moral of the story: webpack can be quite confusing when using it for the first time! But really good way to learn more and make progress!
    Cheers to you all and thank you Jack and Zach for replying to me so fast when i first posted! 
×
×
  • Create New...