Jump to content
Search Community

Saif

Members
  • Posts

    2
  • Joined

  • Last visited

Saif's Achievements

  1. Thank you both very much, my animation is now functioning properly. It seems I have to brush up on some more methods and experiment
  2. Hey everyone, I'm new to Gsap so forgive me if I mistake any technical terms. My animation is two-fold, first to animate a dot from wherever it may be in the document to a specific point on the circle path (for instance the halfway point in the path). Second, upon reaching the point on the circle path, an animation of following the circle path infintely. What I attempted to do was get the rawPath of the path and then getPositionOnPath to get the the co-ordinates of the halfway point of the path, however the co-ordinates appeared to be global. So I then used getRelativePosition and provided the co-ordinates from getPositionOnPath which I believe made the co-ordinates local to the Path. However as can be seen from the CodePen the dot does not go to the halfway point of the path (bottom of the circle). Can someone kindly tell me what I did wrong? or if there is a better way to go about this? Thank you in advance.
×
×
  • Create New...