Jump to content
Search Community

Gsap motionpath object animating out of viewport.

Umair liaqat test
Moderator Tag

Recommended Posts

Hi,

 this codepen is not working correctly (codepen url 

See the Pen eYGaNJV by Umairliaqat (@Umairliaqat) on CodePen

i am experiencing same issue on my website. code is not working in chrome but working in safari. 
this codepen is working fine but not working on my website. 

it has been more than a week since i am stuck on this issue. this is draining my energy and time. 
can anyone please help me here. i tried to use css offset path which work fine in chrome but don't work in safari so i switched to gsap and still hanging.

i have already used 
svg * { 
  transform-origin: center;
  transform-box: fill-box;
  
}

See the Pen VwMovJm by Umairliaqat (@Umairliaqat) on CodePen

Link to comment
Share on other sites

Thanks @Cassie
i need to test this solution. but luckily i figured out an other solution. i have to place birds and motion path at the origin while designing. Now if I export them and use them, they work fine, i have to use transform: translate to position the birds correctly. 
the most important thing is the the object which will move on the path must be at the origin when exported from a design tool like Figma or Adobe xd. 
 
i appreciate your effort and will let you know my status on your code suggestion.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...